結果

問題 No.264 じゃんけん
ユーザー DevbotBotDevbotBot
提出日時 2015-08-13 15:50:15
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 1,269 ms
コンパイル使用メモリ 18,328 KB
実行使用メモリ 18,968 KB
最終ジャッジ日時 2023-09-25 11:27:12
合計ジャッジ時間 2,036 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$input = explode(' ', (trim(fgets(STDIN))));
$sum = $input[0] - $input[1];
$result ="Drew";

switch($sum){
  case -1: case 2:
    $result ="Won";
    break;
  case -2: case 1:
    $result ="Lose";
    break;
}
echo($result) . PHP_EOL;
0