# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1122310 | I_love_Banu | Palindromes (info1cup18_palindromes) | C++14 | 251 ms | 10068 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include"bits/stdc++.h"
using namespace std;
using ll = long long;
#define FOR(i, a) for(int i=0;i<(a);i++)
main() {
int N;
cin >> N;
ll ans = 0;
FOR(i, N) {
string S;
cin >> S;
string T = S;
reverse(begin(T),end(T));
int f = 1;
int M = S.size();
FOR(j, M) {
if (S[j] != T[j]) {
f = 0;
}
}
if (f) {
ans += stoll(S);
}
}
cout << ans << endl;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |