# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
45496 | 2018-04-14T16:15:41 Z | IvanC | Palindromes (info1cup18_palindromes) | C++17 | 984 ms | 564 KB |
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll soma = 0; int N; scanf("%d",&N); for(int vez = 1;vez<=N;vez++){ int x,copia; vector<int> V,U; scanf("%d",&x); copia = x; while(x != 0){ V.push_back(x % 10); U.push_back(x % 10); x /= 10; } reverse(U.begin(),U.end()); if(V == U) soma += copia; } printf("%lld\n",soma); return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Correct | 11 ms | 376 KB | Output is correct |
3 | Correct | 376 ms | 544 KB | Output is correct |
4 | Correct | 583 ms | 544 KB | Output is correct |
5 | Correct | 760 ms | 544 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 544 KB | Output is correct |
2 | Correct | 5 ms | 544 KB | Output is correct |
3 | Correct | 174 ms | 544 KB | Output is correct |
4 | Correct | 336 ms | 544 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 544 KB | Output is correct |
2 | Correct | 5 ms | 544 KB | Output is correct |
3 | Correct | 174 ms | 544 KB | Output is correct |
4 | Correct | 336 ms | 544 KB | Output is correct |
5 | Correct | 2 ms | 544 KB | Output is correct |
6 | Correct | 11 ms | 544 KB | Output is correct |
7 | Correct | 354 ms | 544 KB | Output is correct |
8 | Correct | 437 ms | 544 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Correct | 11 ms | 376 KB | Output is correct |
3 | Correct | 376 ms | 544 KB | Output is correct |
4 | Correct | 583 ms | 544 KB | Output is correct |
5 | Correct | 760 ms | 544 KB | Output is correct |
6 | Correct | 2 ms | 544 KB | Output is correct |
7 | Correct | 5 ms | 544 KB | Output is correct |
8 | Correct | 174 ms | 544 KB | Output is correct |
9 | Correct | 336 ms | 544 KB | Output is correct |
10 | Correct | 2 ms | 544 KB | Output is correct |
11 | Correct | 11 ms | 544 KB | Output is correct |
12 | Correct | 354 ms | 544 KB | Output is correct |
13 | Correct | 437 ms | 544 KB | Output is correct |
14 | Correct | 2 ms | 544 KB | Output is correct |
15 | Correct | 24 ms | 544 KB | Output is correct |
16 | Correct | 298 ms | 544 KB | Output is correct |
17 | Correct | 679 ms | 544 KB | Output is correct |
18 | Correct | 984 ms | 564 KB | Output is correct |
19 | Correct | 777 ms | 564 KB | Output is correct |
20 | Correct | 865 ms | 564 KB | Output is correct |