# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1010140 | AliHasanli | Palindromes (info1cup18_palindromes) | C++17 | 292 ms | 9884 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;
long long n,d,ans;
bool check(int a)
{
int b=a,c=0;
while(b)c=c*10+b%10,b/=10;
return c==a;
}
int main()
{
scanf("%d",&n);
while(n--)
{cin>>d;ans+=check(d)*d;}
cout<<ans;
}
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... |