Submission #2664709
Source Code Expand
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) int main(){ int t; cin >> t; string s[t]; rep(i,t)cin >> s[i]; rep(i,t){ int ct = 0; rep(j,s[i].size()-4){ if((s[i][j] == 'k'&&s[i][j+1] == 'y'&&s[i][j+2] == 'o'&&s[i][j+3] == 't'&&s[i][j+4] == 'o')||(s[i][j] == 't'&&s[i][j+1] == 'o'&&s[i][j+2] == 'k'&&s[i][j+3] == 'y'&&s[i][j+4] == 'o')){ ct++; j+=4; } } cout << ct << endl; } }
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | tubotu |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 545 Byte |
Status | RE |
Exec Time | 96 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 | AC | 2 ms | 256 KB |
20_noised_tokyoto.txt | AC | 2 ms | 256 KB |
99_teuchi.txt | RE | 96 ms | 256 KB |