Submission #532975
Source Code Expand
#include<bits/stdc++.h> #define _ ios_base::sync_with_stdio(0);cin.tie(0); #define REP(i,n) for(int i=0;i<(int)(n);i++) using namespace std; int main(){ _; int t;cin>>t; string s; REP(i,t){ int sum=0; cin>>s; for(int j=0;j<s.size()-4;j++){ if((s[j]=='t'&&s[j+1]=='o'&&s[j+2]=='k'&&s[j+3]=='y'&&s[j+4]=='o')|| (s[j]=='k'&&s[j+1]=='y'&&s[j+2]=='o'&&s[j+3]=='t'&&s[j+4]=='o')){ sum++; j+=4; } } cout<<sum<<endl; } }
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | cryspharos |
Language | C++11 (GCC 4.9.2) |
Score | 0 |
Code Size | 481 Byte |
Status | RE |
Exec Time | 329 ms |
Memory | 928 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | 10_random_to_kyo.txt, 20_noised_tokyoto.txt, 99_teuchi.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
10_random_to_kyo.txt | AC | 25 ms | 928 KB |
20_noised_tokyoto.txt | AC | 23 ms | 920 KB |
99_teuchi.txt | RE | 329 ms | 928 KB |