QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#763274#9741. CCPCUESTC_NLNS#WA 7ms10576kbPython371b2024-11-19 19:18:572024-11-19 19:18:57

Judging History

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

  • [2024-11-19 19:18:57]
  • 评测
  • 测评结果:WA
  • 用时:7ms
  • 内存:10576kb
  • [2024-11-19 19:18:57]
  • 提交

answer

a = input()
m1 = a.count('C')//3
m2 = a.count('P')
print(min(m1,m2))

详细

Test #1:

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

input:

ABCDCPCPC

output:

1

result:

ok single line: '1'

Test #2:

score: -100
Wrong Answer
time: 7ms
memory: 10576kb

input:

CAAACPBCDEFGCHIJCKLPM

output:

1

result:

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