2 solutions

  • 0
    @ 2024-7-22 16:12:19

    60分白嫖方法,包对的!

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a,b;
    	cin>>a>>b;
    	int res=0;
    	while(a!=0){
    		int c=a%10;
    		res=res*10+c;
    		a/=10;
    	}
    	if(res==b) cout<<1;
    	else cout<<0;
    	
    	return 0;
    }
    

    Information

    ID
    1052
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    # Submissions
    6
    Accepted
    3
    Uploaded By