結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-09 01:55:43 |
| 言語 | Ruby (4.0.2) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 472 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 62,076 KB |
| 最終ジャッジ日時 | 2026-03-31 12:56:45 |
| 合計ジャッジ時間 | 6,394 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 12 |
コンパイルメッセージ
Syntax OK
ソースコード
s = ''
tmp = 0
puts '0000000000'
x,judge = gets.chomp.split
x = x.to_i
if judge == 'unlocked'
exit
end
if tmp < x
tmp = x
s = '0'
end
10.times{
1.upto(9){|i|
puts "%010d" % (i.to_s + s)
STDOUT.flush
x,judge = gets.chomp.split
x = x.to_i
if judge == 'unlocked'
exit
end
if tmp < x
tmp = x
s = i.to_s + s
break
end
}
s = '0' + s
}