Submission #2229198
Source Code Expand
n = gets.chomp.to_i for i in 0...n do s = gets.chomp res = 0 while s =~ /^.*?(toky|kyot)o/ res += 1 s = $' end puts res end
Submission Info
Submission Time | |
---|---|
Task | A - 東京都 |
User | sheyasutaka |
Language | Ruby (2.3.3) |
Score | 100 |
Code Size | 158 Byte |
Status | AC |
Exec Time | 8 ms |
Memory | 1788 KB |
Compile Error
./Main.rb:3: warning: assigned but unused variable - i
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 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 | 7 ms | 1788 KB |
20_noised_tokyoto.txt | AC | 8 ms | 1788 KB |
99_teuchi.txt | AC | 7 ms | 1788 KB |