結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | papinianus |
提出日時 | 2016-06-20 15:31:18 |
言語 | PHP (8.3.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 31,212 KB |
実行使用メモリ | 31,404 KB |
最終ジャッジ日時 | 2024-04-19 13:05:24 |
合計ジャッジ時間 | 1,672 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 37 ms
31,184 KB |
testcase_01 | AC | 35 ms
31,076 KB |
testcase_02 | AC | 38 ms
31,060 KB |
testcase_03 | AC | 39 ms
31,168 KB |
testcase_04 | WA | - |
testcase_05 | AC | 39 ms
30,884 KB |
testcase_06 | AC | 36 ms
30,980 KB |
testcase_07 | AC | 37 ms
31,232 KB |
testcase_08 | AC | 37 ms
31,056 KB |
testcase_09 | AC | 38 ms
31,352 KB |
testcase_10 | AC | 40 ms
30,988 KB |
testcase_11 | AC | 39 ms
31,032 KB |
testcase_12 | AC | 39 ms
31,228 KB |
testcase_13 | AC | 40 ms
31,280 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 40 ms
30,960 KB |
testcase_17 | AC | 37 ms
31,212 KB |
testcase_18 | AC | 38 ms
30,944 KB |
testcase_19 | AC | 41 ms
31,112 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php list($first_name, $first_point, $devnull) = explode(' ', trim(fgets(STDIN))); list($second_name, $second_point, $devnull) = explode(' ', trim(fgets(STDIN))); if(strcmp($first_point,$second_point)==0) { echo '-1'; } else if(strcmp($first_point,$second_point)>0) { echo $first_name; } else { echo $second_name; } echo PHP_EOL;