CODE FESTIVAL 2014 予選A

Submission #235471

Source codeソースコード

s = gets.strip.chomp
puts s[(gets.to_i - 1) % s.size]

Submission

Task問題 B - とても長い文字列
User nameユーザ名 yantene
Created time投稿日時
Language言語 Ruby (1.9.3)
Status状態 AC
Score得点 100
Source lengthソースコード長 56 Byte
File nameファイル名
Exec time実行時間 56 ms
Memory usageメモリ使用量 4208 KB

Test case

Set

Set name Score得点 / Max score Cases
sub 30 / 30 test_01A.txt,test_02A.txt,test_04A.txt,test_05A.txt,test_07A.txt,test_09A.txt,test_11A.txt,test_13A.txt,test_14A.txt,test_15A.txt,test_17A.txt,test_18A.txt
All 70 / 70 test_01A.txt,test_02A.txt,test_03.txt,test_04A.txt,test_05A.txt,test_06.txt,test_07A.txt,test_08.txt,test_09A.txt,test_10.txt,test_11A.txt,test_12.txt,test_13A.txt,test_14A.txt,test_15A.txt,test_16.txt,test_17A.txt,test_18A.txt,sample_01.txt,sample_02.txt,sample_03.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
sample_01.txt AC 53 ms 4080 KB
sample_02.txt AC 53 ms 4080 KB
sample_03.txt AC 52 ms 4204 KB
test_01A.txt AC 51 ms 4204 KB
test_02A.txt AC 52 ms 4204 KB
test_03.txt AC 52 ms 4080 KB
test_04A.txt AC 52 ms 4080 KB
test_05A.txt AC 52 ms 4080 KB
test_06.txt AC 54 ms 4208 KB
test_07A.txt AC 52 ms 4204 KB
test_08.txt AC 53 ms 4204 KB
test_09A.txt AC 52 ms 4200 KB
test_10.txt AC 52 ms 4204 KB
test_11A.txt AC 53 ms 4080 KB
test_12.txt AC 53 ms 4204 KB
test_13A.txt AC 53 ms 4080 KB
test_14A.txt AC 56 ms 4200 KB
test_15A.txt AC 51 ms 4120 KB
test_16.txt AC 52 ms 4080 KB
test_17A.txt AC 51 ms 4204 KB
test_18A.txt AC 52 ms 4204 KB