# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
974883 | sleepntsheep | Palindromes (info1cup18_palindromes) | C11 | 129 ms | 10236 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<stdio.h>
int n,d;long long z;
int ispal(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--)
scanf("%d",&d), z+=ispal(d)*d;
printf("%lld",z);
}
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... |