1 solutions

  • 0
    @ 2023-12-20 19:56:11
    #include<iostream>
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin >> n;
    	int s = n;	
    	int m=0;
    	do{
    		m *= 10;
    		m += n%10;
    		n /= 10; 
    	}while(n != 0);
    	int sum = s + m;
    	cout << sum;
    	return 0;
    }
    
    • 1

    Information

    ID
    353
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    2
    Tags
    # Submissions
    94
    Accepted
    56
    Uploaded By