제출 #1134063

#제출 시각아이디문제언어결과실행 시간메모리
1134063bpptidpPalindromes (info1cup18_palindromes)C++20
100 / 100
235 ms412 KiB
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int n; cin>>n; ll sum=0; for(int i=0,x,m;i<n;++i){ cin>>x; string s=to_string(x); m=s.size(); bool ok=1; for(int j=0;j<m/2;++j) ok&=(s[j]==s[m-j-1]); sum+=ok*x; } cout<<sum; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...