QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#124338#5501. Ctrl+C Ctrl+Vftt2333WA 1ms3308kbC++14168b2023-07-14 17:01:102023-07-14 17:01:12

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 17:01:12]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3308kb
  • [2023-07-14 17:01:10]
  • 提交

answer

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3308kb

input:

3
aniasieurodzilaapotemnicsieniedzialo
nicciekawegouanianiagnieszkianialicji
jeszczekrotszaautobiografiaani

output:


result:

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