結果
問題 | No.264 じゃんけん |
ユーザー | hamham |
提出日時 | 2017-06-13 15:42:07 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 41 ms / 5,000 ms |
コード長 | 870 bytes |
コンパイル時間 | 68 ms |
コンパイル使用メモリ | 32,440 KB |
実行使用メモリ | 32,564 KB |
最終ジャッジ日時 | 2023-10-24 21:46:42 |
合計ジャッジ時間 | 950 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 41 ms
32,564 KB |
testcase_01 | AC | 41 ms
32,564 KB |
testcase_02 | AC | 39 ms
32,564 KB |
testcase_03 | AC | 38 ms
32,564 KB |
testcase_04 | AC | 39 ms
32,564 KB |
testcase_05 | AC | 38 ms
32,564 KB |
testcase_06 | AC | 38 ms
32,564 KB |
testcase_07 | AC | 38 ms
32,564 KB |
testcase_08 | AC | 38 ms
32,564 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php //1行目を読み込む $line1 = trim(fgets(STDIN)); list($mine, $his) = explode(" ", $line1); $result; if ($mine === '0') { if ($his === '0') { $result = "Drew"; } else if ($his === '1') { $result = "Won"; } else if ($his === '2') { $result = "Lost"; } else { $result = "Drew"; } } else if ($mine === '1') { if ($his === '0') { $result = "Lost"; } else if ($his === '1') { $result = "Drew"; } else if ($his === '2') { $result = "Won"; } else { $result = "Drew"; } } else if ($mine === '2') { if ($his === '0') { $result = "Won"; } else if ($his === '1') { $result = "Lost"; } else if ($his === '2') { $result = "Drew"; } else { $result = "Drew"; } } else { $result = "Drew"; } printf("{$result} \n");