結果

問題 No.264 じゃんけん
ユーザー ねずねず
提出日時 2018-01-24 08:18:48
言語 PHP
(8.3.4)
結果
AC  
実行時間 7 ms / 5,000 ms
コード長 193 bytes
コンパイル時間 1,001 ms
コンパイル使用メモリ 11,836 KB
実行使用メモリ 12,260 KB
最終ジャッジ日時 2023-08-27 01:43:13
合計ジャッジ時間 1,818 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,228 KB
testcase_01 AC 7 ms
12,168 KB
testcase_02 AC 7 ms
12,136 KB
testcase_03 AC 7 ms
12,252 KB
testcase_04 AC 7 ms
12,240 KB
testcase_05 AC 7 ms
12,124 KB
testcase_06 AC 7 ms
12,260 KB
testcase_07 AC 7 ms
12,196 KB
testcase_08 AC 7 ms
12,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$a = explode(" ", trim(fgets(STDIN)));
$m = $a[1] - $a[0];
if ($m < 0) $m += 3;
switch ($m) {
	case 0 : print 'Drew';break;
	case 1 : print 'Won';break;
	case 2 : print 'Lost';break;
}
?>
0