QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#205271#5422. Perfect PalindrometrisolarisWA 0ms3676kbC++20353b2023-10-07 15:21:302023-10-07 15:21:30

Judging History

你现在查看的是最新测评结果

  • [2023-10-07 15:21:30]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3676kb
  • [2023-10-07 15:21:30]
  • 提交

answer

#include <bits/stdc++.h>
const int N = 3e5 + 10;
typedef long long ll;

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);

    std::string s;
    std::cin >> s;

    int cnt = 0;
    for(int i = 0; i < s.size(); i++)
        if(s[i] != s[s.size() - 1 - i])
            ++cnt;

    std::cout << cnt << "\n";
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3676kb

input:

2
abcb
xxx

output:

0

result:

wrong answer 1st numbers differ - expected: '2', found: '0'