結果

問題 No.264 じゃんけん
ユーザー ant2357ant2357
提出日時 2016-03-16 23:15:20
言語 PHP
(8.3.4)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 3,832 ms
コンパイル使用メモリ 32,160 KB
実行使用メモリ 32,668 KB
最終ジャッジ日時 2024-04-08 16:39:11
合計ジャッジ時間 4,791 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
	list($a, $b) = explode(" ", trim(fgets(STDIN)));

	if ($a == $b) {
		echo "Drew";
	} else if( $a == 0 && $b == 1 || $a == 1 && $b == 2 || $a == 2 && $b == 0) {
		echo "Won";
	} else {
		echo "Lost";
	}
0