結果

問題 No.264 じゃんけん
ユーザー tana_ffee
提出日時 2020-05-30 11:34:45
言語 PHP
(843.2)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 288 bytes
コンパイル時間 1,257 ms
コンパイル使用メモリ 30,648 KB
実行使用メモリ 31,260 KB
最終ジャッジ日時 2024-11-07 07:44:17
合計ジャッジ時間 2,201 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
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