eolymp
bolt
Try our new interface for solving problems
published at 3/27/24, 8:28:34 pm

include <iostream>

using namespace std;

int main() { long long n,a,b,c,d,e;
cin>>n; a=n%10; b=n/10%10; c=n/100%10; d=n/1000%10; e=n/10000%10; cout<<a<<b<<c<<d<<e;

return 0;

}

published at 3/28/24, 2:06:17 pm

include <iostream>

using namespace std;

int main() { long long n,a,b,c,d,e; cin>>n; a=n%10; b=n/10%10; c=n/100%10; d=n/1000%10; e=n/10000%10; cout<<a<<b<<c<<d<<e;

return 0; }