QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#124338 | #5501. Ctrl+C Ctrl+V | ftt2333 | WA | 1ms | 3308kb | C++14 | 168b | 2023-07-14 17:01:10 | 2023-07-14 17:01:12 |
Judging History
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: ''