結果

問題 No.8 N言っちゃダメゲーム
ユーザー EnglishStudytwiEnglishStudytwi
提出日時 2015-05-20 21:36:26
言語 PHP
(8.3.4)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 18,688 KB
実行使用メモリ 18,924 KB
最終ジャッジ日時 2023-09-20 10:18:55
合計ジャッジ時間 803 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
18,924 KB
testcase_01 AC 14 ms
18,900 KB
testcase_02 AC 15 ms
18,880 KB
testcase_03 AC 16 ms
18,788 KB
testcase_04 AC 15 ms
18,904 KB
testcase_05 AC 15 ms
18,896 KB
testcase_06 AC 15 ms
18,672 KB
testcase_07 AC 15 ms
18,700 KB
testcase_08 AC 15 ms
18,880 KB
testcase_09 AC 15 ms
18,752 KB
testcase_10 AC 15 ms
18,884 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN, "%d", $p);

for($i = 0; $i < $p; $i++){
    fscanf(STDIN, "%d %d", $n, $k);

    $result = $n % ($k +1);

    if($result == 1){
        echo "Lose"."\n";
    } else {
        echo "Win"."\n";
    }
}
0