結果

問題 No.264 じゃんけん
ユーザー kwkkwk
提出日時 2022-12-12 11:10:57
言語 PHP
(8.3.4)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 180 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 31,168 KB
実行使用メモリ 31,180 KB
最終ジャッジ日時 2024-04-24 02:55:50
合計ジャッジ時間 856 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
[$a,$b]= explode(" ",fgets(STDIN));

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