Submission #532987


Source Code Expand

#!/usr/bin/ruby
gets.to_i.times{
	s=gets.chomp
	r=0
	loop{
		break if not s.sub!(/^.*?(tokyo|kyoto)/,'')
		r+=1
	}
	p r
}

Submission Info

Submission Time
Task A - 東京都
User leafmoon
Language Ruby (2.1.5p273)
Score 100
Code Size 130 Byte
Status AC
Exec Time 65 ms
Memory 4972 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 3
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 65 ms 4960 KB
20_noised_tokyoto.txt AC 64 ms 4964 KB
99_teuchi.txt AC 60 ms 4972 KB