結果

問題 No.201 yukicoderじゃんけん
ユーザー papinianuspapinianus
提出日時 2016-06-20 15:27:51
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 1,849 ms
コンパイル使用メモリ 32,276 KB
実行使用メモリ 32,660 KB
最終ジャッジ日時 2024-04-19 13:05:30
合計ジャッジ時間 1,719 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
32,272 KB
testcase_01 AC 34 ms
32,400 KB
testcase_02 AC 34 ms
32,404 KB
testcase_03 AC 34 ms
32,532 KB
testcase_04 WA -
testcase_05 AC 35 ms
32,340 KB
testcase_06 AC 34 ms
32,400 KB
testcase_07 AC 34 ms
32,272 KB
testcase_08 AC 33 ms
32,400 KB
testcase_09 AC 33 ms
32,532 KB
testcase_10 AC 34 ms
32,468 KB
testcase_11 AC 33 ms
32,404 KB
testcase_12 AC 33 ms
32,528 KB
testcase_13 AC 32 ms
32,400 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 33 ms
32,400 KB
testcase_17 AC 34 ms
32,400 KB
testcase_18 AC 34 ms
32,400 KB
testcase_19 AC 35 ms
32,656 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($first_name, $first_point, $devnull) = explode(' ', trim(fgets(STDIN)));
list($second_name, $second_point, $devnull) = explode(' ', trim(fgets(STDIN)));
if($first_point == $second_point) {
    echo '-1';
} else if($first_point > $second_point) {
    echo $first_name;
} else {
    echo $second_name;
}
echo PHP_EOL;
0