제출 #666542

#제출 시각아이디문제언어결과실행 시간메모리
666542divadPalindromes (info1cup18_palindromes)C++14
100 / 100
427 ms10000 KiB
/// lucrez probleme de pe oj.uz omg!!! #include <iostream> #include <algorithm> #define int long long using namespace std; int n,x,ans; signed main() { cin >> n; for(int i = 1; i <= n; i++){ cin >> x; string s = to_string(x); string rev = s; reverse(rev.begin(), rev.end()); if(rev.compare(s) == 0){ ans += x; } } cout << ans; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...