QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#205276#5422. Perfect PalindrometrisolarisWA 0ms3640kbC++20440b2023-10-07 15:22:492023-10-07 15:22:49

Judging History

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

  • [2023-10-07 15:22:49]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3640kb
  • [2023-10-07 15:22:49]
  • 提交

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);

    int t;
    std::cin >> t;

    while(t--) {
        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: 3640kb

input:

2
abcb
xxx

output:

4
0

result:

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