結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,812 KB
testcase_01 AC 15 ms
18,888 KB
testcase_02 AC 16 ms
18,968 KB
testcase_03 AC 16 ms
18,940 KB
testcase_04 AC 16 ms
18,656 KB
testcase_05 AC 16 ms
18,768 KB
testcase_06 AC 15 ms
18,900 KB
testcase_07 AC 16 ms
18,772 KB
testcase_08 AC 15 ms
18,812 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 ="Lost";
    break;
}
echo($result) . PHP_EOL;
0