답안 #974878

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
974878 2024-05-04T05:03:51 Z lern Palindromes (info1cup18_palindromes) C++11
50 / 100
153 ms 4180 KB
/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int t,cem=0;
    cin>>t;
    string s,s1;
    while(t--){
        cin>>s;
        s1=s;
        reverse(s.begin(),s.end());
        if(s==s1){
            cem+=stoi(s);
        }
    }
    cout<<cem;

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 2 ms 348 KB Output is correct
3 Correct 71 ms 1716 KB Output is correct
4 Correct 140 ms 3088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 2 ms 348 KB Output is correct
3 Correct 71 ms 1716 KB Output is correct
4 Correct 140 ms 3088 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 4 ms 348 KB Output is correct
7 Correct 128 ms 3460 KB Output is correct
8 Correct 153 ms 4180 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -