結果

問題 No.264 じゃんけん
ユーザー ieneko18ieneko18
提出日時 2016-11-28 03:40:31
言語 PHP
(8.3.4)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 31,108 KB
実行使用メモリ 31,284 KB
最終ジャッジ日時 2024-05-05 14:29:12
合計ジャッジ時間 841 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
30,976 KB
testcase_01 AC 34 ms
30,932 KB
testcase_02 AC 33 ms
30,924 KB
testcase_03 AC 36 ms
31,284 KB
testcase_04 AC 36 ms
31,048 KB
testcase_05 AC 38 ms
31,036 KB
testcase_06 AC 36 ms
30,888 KB
testcase_07 AC 34 ms
30,980 KB
testcase_08 AC 33 ms
31,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($n,$k)=explode(" ",trim(fgets(STDIN)));
$s=($n-$k+3)%3;
switch($s){
    case 0:echo "Drew\n";break;
    case 1:echo "Lost\n";break;
    case 2:echo "Won\n";break;
}
?>
0