Submission #3925045
Source Code Expand
#include<bits/stdc++.h> using namespace std; string s,c; int i,j,ans,n; int main(){ cin>>n; for(j=0;j<n;++j){ cin>>s; ans=0; for(i=0;i<s.length();++i){ c=(s[i]+s[i+1]+s[i+2]+s[i+3]+s[i+4]); cout<<c<<endl; if(c=="tokyo"||c=="kyoto"){++ans;i+=3;} } cout<<ans<<endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | YMJcvjk |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 402 Byte |
Status | WA |
Exec Time | 17 ms |
Memory | 256 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 | WA | 16 ms | 256 KB |
20_noised_tokyoto.txt | WA | 17 ms | 256 KB |
99_teuchi.txt | WA | 7 ms | 256 KB |