This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long e=0,z; string q; cin >>z; while(z--){
int s=0; cin >> q; for(unsigned int e2=0;e2<q.size()/2;e2++){
if(q[e2]!=q[q.size()-e2-1]){s=4; break;}
} if(!s){int d; stringstream w; w << q; w >> d; e+=d;}
} cout << e;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |