結果
問題 | No.305 鍵(2) |
ユーザー | cympfh |
提出日時 | 2015-12-04 13:15:34 |
言語 | Ruby (3.2.2) |
結果 |
AC
|
実行時間 | 113 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 351 ms |
コンパイル使用メモリ | 11,228 KB |
実行使用メモリ | 31,348 KB |
平均クエリ数 | 86.69 |
最終ジャッジ日時 | 2023-09-23 22:15:41 |
合計ジャッジ時間 | 3,261 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 113 ms
31,268 KB |
testcase_01 | AC | 105 ms
30,804 KB |
testcase_02 | AC | 108 ms
31,348 KB |
testcase_03 | AC | 107 ms
30,716 KB |
testcase_04 | AC | 106 ms
30,724 KB |
testcase_05 | AC | 106 ms
30,796 KB |
testcase_06 | AC | 103 ms
30,836 KB |
testcase_07 | AC | 108 ms
31,180 KB |
testcase_08 | AC | 107 ms
30,808 KB |
testcase_09 | AC | 102 ms
30,732 KB |
testcase_10 | AC | 104 ms
30,660 KB |
testcase_11 | AC | 103 ms
30,888 KB |
testcase_12 | AC | 101 ms
31,316 KB |
コンパイルメッセージ
Syntax OK
ソースコード
def iter a ns = [] for i in 0 ... 10 b = a + i.to_s b = b + '0' while b.length < 10 puts b STDOUT.flush n, res = gets.chomp.split ns[i] = n.to_i if res == 'unlocked' exit(0) end end mx = ns[0] idx = 0 for i in 0 ... 10 if mx < ns[i] mx = ns[i] idx = i end end iter (a + idx.to_s) end iter ''