結果
| 問題 |
No.8 N言っちゃダメゲーム
|
| コンテスト | |
| ユーザー |
riokuma0810
|
| 提出日時 | 2015-08-18 01:46:06 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 212 bytes |
| コンパイル時間 | 36 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-18 10:07:54 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 11 |
コンパイルメッセージ
Main.rb:5: warning: assigned but unused variable - k Syntax OK
ソースコード
i = gets.chomp.to_i
i.times do
n_k = gets.chomp.split
k = n_k[1].to_i
while n_k[0].to_i - 1 > 0
n = n - (n_k[1].to_i+1)
end
if n != 0
puts "Win"
else
puts "Lose"
end
end
riokuma0810