結果

問題 No.264 じゃんけん
ユーザー tana_ffeetana_ffee
提出日時 2020-05-30 11:34:45
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 288 bytes
コンパイル時間 972 ms
コンパイル使用メモリ 30,076 KB
実行使用メモリ 30,748 KB
最終ジャッジ日時 2024-04-24 22:32:40
合計ジャッジ時間 1,264 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
30,520 KB
testcase_01 AC 42 ms
30,640 KB
testcase_02 AC 40 ms
30,600 KB
testcase_03 AC 39 ms
30,468 KB
testcase_04 AC 40 ms
30,564 KB
testcase_05 AC 40 ms
30,748 KB
testcase_06 AC 41 ms
30,360 KB
testcase_07 AC 40 ms
30,452 KB
testcase_08 AC 40 ms
30,344 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$array = explode(" ", trim(fgets(STDIN)));
$input1 = $array[0];
$input2 = $array[1];
$ans = 0;
if ($input1 == $input2) {
	$ans = "Drew";
} else if ($input1 == 2 && $input2 == 0){
	$ans = "Won";
} else if ($input1+1 == $input2) {
	$ans = "Won";
} else {
	$ans = "Lost";
}

echo $ans;
0