#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;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
13 ms |
412 KB |
Output is correct |
3 |
Correct |
422 ms |
4992 KB |
Output is correct |
4 |
Correct |
599 ms |
7436 KB |
Output is correct |
5 |
Correct |
939 ms |
9856 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
5 ms |
332 KB |
Output is correct |
3 |
Correct |
190 ms |
1660 KB |
Output is correct |
4 |
Correct |
364 ms |
3072 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
5 ms |
332 KB |
Output is correct |
3 |
Correct |
190 ms |
1660 KB |
Output is correct |
4 |
Correct |
364 ms |
3072 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Correct |
8 ms |
312 KB |
Output is correct |
7 |
Correct |
389 ms |
3328 KB |
Output is correct |
8 |
Correct |
368 ms |
3964 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
13 ms |
412 KB |
Output is correct |
3 |
Correct |
422 ms |
4992 KB |
Output is correct |
4 |
Correct |
599 ms |
7436 KB |
Output is correct |
5 |
Correct |
939 ms |
9856 KB |
Output is correct |
6 |
Correct |
0 ms |
204 KB |
Output is correct |
7 |
Correct |
5 ms |
332 KB |
Output is correct |
8 |
Correct |
190 ms |
1660 KB |
Output is correct |
9 |
Correct |
364 ms |
3072 KB |
Output is correct |
10 |
Correct |
1 ms |
204 KB |
Output is correct |
11 |
Correct |
8 ms |
312 KB |
Output is correct |
12 |
Correct |
389 ms |
3328 KB |
Output is correct |
13 |
Correct |
368 ms |
3964 KB |
Output is correct |
14 |
Correct |
0 ms |
204 KB |
Output is correct |
15 |
Correct |
21 ms |
584 KB |
Output is correct |
16 |
Correct |
223 ms |
4108 KB |
Output is correct |
17 |
Correct |
547 ms |
8968 KB |
Output is correct |
18 |
Correct |
750 ms |
10000 KB |
Output is correct |
19 |
Correct |
424 ms |
9864 KB |
Output is correct |
20 |
Correct |
637 ms |
9868 KB |
Output is correct |