# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95342 | 2019-01-30T12:57:35 Z | dalgerok | Palindromes (info1cup18_palindromes) | C++14 | 145 ms | 10116 KB |
#include<bits/stdc++.h> using namespace std; main(){ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); int n; cin >> n; long long ans = 0; for(int i = 1; i <= n; i++){ string s, t; cin >> s; t = s; reverse(t.begin(), t.end()); ans += (t == s ? atoi(s.c_str()) : 0); } cout << ans; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 504 KB | Output is correct |
2 | Correct | 4 ms | 508 KB | Output is correct |
3 | Correct | 73 ms | 5212 KB | Output is correct |
4 | Correct | 109 ms | 7672 KB | Output is correct |
5 | Correct | 145 ms | 10016 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Correct | 3 ms | 376 KB | Output is correct |
3 | Correct | 40 ms | 1784 KB | Output is correct |
4 | Correct | 77 ms | 3192 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Correct | 3 ms | 376 KB | Output is correct |
3 | Correct | 40 ms | 1784 KB | Output is correct |
4 | Correct | 77 ms | 3192 KB | Output is correct |
5 | Correct | 2 ms | 376 KB | Output is correct |
6 | Correct | 4 ms | 376 KB | Output is correct |
7 | Correct | 74 ms | 3420 KB | Output is correct |
8 | Correct | 83 ms | 4344 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 504 KB | Output is correct |
2 | Correct | 4 ms | 508 KB | Output is correct |
3 | Correct | 73 ms | 5212 KB | Output is correct |
4 | Correct | 109 ms | 7672 KB | Output is correct |
5 | Correct | 145 ms | 10016 KB | Output is correct |
6 | Correct | 2 ms | 376 KB | Output is correct |
7 | Correct | 3 ms | 376 KB | Output is correct |
8 | Correct | 40 ms | 1784 KB | Output is correct |
9 | Correct | 77 ms | 3192 KB | Output is correct |
10 | Correct | 2 ms | 376 KB | Output is correct |
11 | Correct | 4 ms | 376 KB | Output is correct |
12 | Correct | 74 ms | 3420 KB | Output is correct |
13 | Correct | 83 ms | 4344 KB | Output is correct |
14 | Correct | 2 ms | 376 KB | Output is correct |
15 | Correct | 6 ms | 632 KB | Output is correct |
16 | Correct | 48 ms | 4472 KB | Output is correct |
17 | Correct | 106 ms | 8968 KB | Output is correct |
18 | Correct | 137 ms | 9976 KB | Output is correct |
19 | Correct | 102 ms | 9976 KB | Output is correct |
20 | Correct | 125 ms | 10116 KB | Output is correct |