| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 524917 | lucri | Palindromes (info1cup18_palindromes) | C++17 | 400 ms | 10052 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 <iostream>
using namespace std;
long long n,s,x;
bool palindrom(long long n)
{
long long cn=n,rn=0;
while(cn)
{
rn*=10;
rn+=cn%10;
cn/=10;
}
if(n==rn)
return true;
return false;
}
int main()
{
cin>>n;
while(n--)
{
cin>>x;
if(palindrom(x))
s+=x;
}
cout<<s;
return 0;
}
| # | 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... | ||||
