# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
98876 | 2019-02-27T04:21:44 Z | Nordway | Palindromes (info1cup18_palindromes) | C++14 | 465 ms | 10108 KB |
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; long long ans = 0; for (int i = 1; i <= n; i++) { string a; cin >> a; string b = a; reverse(b.begin(), b.end()); if (b == a) { int p = 1; for (int j = 0; j < b.size(); j++) { ans += p * (b[j] - '0'); p *= 10; } } } cout << ans; return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 9 ms | 384 KB | Output is correct |
3 | Correct | 232 ms | 5112 KB | Output is correct |
4 | Correct | 423 ms | 7516 KB | Output is correct |
5 | Correct | 465 ms | 10108 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | Output is correct |
2 | Correct | 5 ms | 384 KB | Output is correct |
3 | Correct | 116 ms | 1788 KB | Output is correct |
4 | Correct | 210 ms | 3192 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | Output is correct |
2 | Correct | 5 ms | 384 KB | Output is correct |
3 | Correct | 116 ms | 1788 KB | Output is correct |
4 | Correct | 210 ms | 3192 KB | Output is correct |
5 | Correct | 2 ms | 256 KB | Output is correct |
6 | Correct | 7 ms | 384 KB | Output is correct |
7 | Correct | 196 ms | 3324 KB | Output is correct |
8 | Correct | 237 ms | 4088 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 9 ms | 384 KB | Output is correct |
3 | Correct | 232 ms | 5112 KB | Output is correct |
4 | Correct | 423 ms | 7516 KB | Output is correct |
5 | Correct | 465 ms | 10108 KB | Output is correct |
6 | Correct | 2 ms | 384 KB | Output is correct |
7 | Correct | 5 ms | 384 KB | Output is correct |
8 | Correct | 116 ms | 1788 KB | Output is correct |
9 | Correct | 210 ms | 3192 KB | Output is correct |
10 | Correct | 2 ms | 256 KB | Output is correct |
11 | Correct | 7 ms | 384 KB | Output is correct |
12 | Correct | 196 ms | 3324 KB | Output is correct |
13 | Correct | 237 ms | 4088 KB | Output is correct |
14 | Correct | 2 ms | 404 KB | Output is correct |
15 | Correct | 25 ms | 640 KB | Output is correct |
16 | Correct | 177 ms | 4088 KB | Output is correct |
17 | Correct | 399 ms | 8916 KB | Output is correct |
18 | Correct | 421 ms | 9948 KB | Output is correct |
19 | Correct | 410 ms | 9976 KB | Output is correct |
20 | Correct | 446 ms | 9976 KB | Output is correct |