結果

問題 No.8 N言っちゃダメゲーム
ユーザー hashimotohashimoto
提出日時 2015-05-20 16:32:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 15,344 KB
最終ジャッジ日時 2023-09-20 10:17:42
合計ジャッジ時間 1,683 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,108 KB
testcase_01 AC 81 ms
15,088 KB
testcase_02 AC 82 ms
15,140 KB
testcase_03 AC 82 ms
15,140 KB
testcase_04 AC 83 ms
15,240 KB
testcase_05 AC 82 ms
15,140 KB
testcase_06 AC 82 ms
15,248 KB
testcase_07 AC 83 ms
15,024 KB
testcase_08 AC 84 ms
15,148 KB
testcase_09 AC 82 ms
15,344 KB
testcase_10 AC 82 ms
15,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p = gets.to_i

games = []
i = 0
p.times{
    games[i] = gets.split.map(&:to_i)
    i += 1
}

games.each do |game|
    if game[0] % (game[1] + 1) == 1
        puts "Lose"
    else
        puts "Win"
    end
end
0