Submission #509980

#TimeUsernameProblemLanguageResultExecution timeMemory
509980SalamaPalindromes (info1cup18_palindromes)C++14
100 / 100
939 ms10000 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...