QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#325932#5577. Alchemyanpans#WA 1ms3612kbC++14390b2024-02-12 04:45:062024-02-12 04:45:06

Judging History

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

  • [2024-02-12 04:45:06]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3612kb
  • [2024-02-12 04:45:06]
  • 提交

answer

#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>

using namespace std;

int l, t;
string s;

int main() {
    cin >> s;
    l = s.length();
    t = 0;
    for (int i = 0; i < l / 2; i++) {
        if (s[i] == s[l-i-1]) continue;
        t++;
        if (i+1 != l/2 && s[i+1] == s[l-i-2]) t++;
    }
    cout << t << '\n';
}

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3524kb

input:

ioi

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3476kb

input:

noi

output:

1

result:

ok single line: '1'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3492kb

input:

ctsc

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

fool

output:

2

result:

ok single line: '2'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3608kb

input:

vetted

output:

2

result:

ok single line: '2'

Test #6:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

aa

output:

0

result:

ok single line: '0'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

ic

output:

1

result:

ok single line: '1'

Test #8:

score: -100
Wrong Answer
time: 0ms
memory: 3588kb

input:

tlffohemdcncrfrxaqsbzcoyodvbxmhqukvfpahnakexcmacqa

output:

25

result:

wrong answer 1st lines differ - expected: '12', found: '25'