結果

問題 No.264 じゃんけん
ユーザー papinianuspapinianus
提出日時 2016-05-15 01:24:19
言語 PHP
(8.3.4)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 308 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 31,316 KB
最終ジャッジ日時 2024-04-15 21:39:58
合計ジャッジ時間 999 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,200 KB
testcase_01 AC 40 ms
31,316 KB
testcase_02 AC 38 ms
31,068 KB
testcase_03 AC 38 ms
31,100 KB
testcase_04 AC 38 ms
31,080 KB
testcase_05 AC 37 ms
31,088 KB
testcase_06 AC 39 ms
31,312 KB
testcase_07 AC 39 ms
31,196 KB
testcase_08 AC 38 ms
30,928 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($x, $y) = explode(" ", trim(fgets(STDIN)));
if($x == $y) {
    echo "Drew".PHP_EOL;
} else {
    switch($x.$y) {
        case "01":
        case "12":
        case "20":
            echo "Won".PHP_EOL;
            break;
        default:
            echo "Lost".PHP_EOL;
            break;
    }
}
0