結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-27 22:38:38 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 176 bytes |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 29,280 KB |
| 平均クエリ数 | 0.33 |
| 最終ジャッジ日時 | 2024-07-16 06:35:43 |
| 合計ジャッジ時間 | 4,595 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 1 TLE * 1 -- * 4 |
コンパイルメッセージ
Main.rb:7: warning: assigned but unused variable - ret Syntax OK
ソースコード
res = ""
cnt = 0
while res != "unlocked" do
key = format("%03d", cnt)
puts key
STDOUT.flush
ret = gets.chomp
if res == "locked"
cnt += 1
end
end