QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#124310#5501. Ctrl+C Ctrl+Vftt2333RE 0ms3372kbC++14186b2023-07-14 16:46:422023-07-14 16:46:45

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-14 16:46:45]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:3372kb
  • [2023-07-14 16:46:42]
  • 提交

answer

#include<iostream>
using namespace std;main(){int t;cin>>t;while(t--){int ans=0;string s;cin>>s;for(int i=0;i<s.size()-3;++i)if(s.substr(i,4)=="ania")s[i+3]='z',++ans;cout<<ans<<'\n';}}

详细

Test #1:

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

input:

3
aniasieurodzilaapotemnicsieniedzialo
nicciekawegouanianiagnieszkianialicji
jeszczekrotszaautobiografiaani

output:

1
2
0

result:

ok 3 lines

Test #2:

score: -100
Dangerous Syscalls

input:

10000
aniaanianianianiaviananibnianianianianianiapianianianianianianiaanianianianiananianianianiananifw
ananiacnganiaaywbwrkaniahaniaganiaglljaniaouaqrdyaniaypvsgjltrbcvjssrtnehqfzpfvaniahwaniauzncovwfmiqejteiuaniacblxyfikauptesitsitvananianiajndy
anianianianianianiaanianianianianiaanianianianianiaa...

output:

13
11
53
16
10
13
35
2
39
7
19
14
47
7
78
34
59
60
21
13
22
18
18
9
77
3
19
14
44
64
18
26
14
4
27
38
9
65
13
27
51
23
3
13
26
69
5
20
32
23
22
13
29
2
23
2
18
21
68
50
21
9
5
6
21
22
77
1
60
54
8
19
51
13
6
18
70
18
22
19
20
4
74
17
26
8
19
78
11
28
72
8
45
21
23
21
15
54
65
14
2
9
10
5
33
78
0
30
...

result: