結果

問題 No.201 yukicoderじゃんけん
ユーザー
提出日時 2016-01-20 18:41:55
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 5,519 ms
コンパイル使用メモリ 32,432 KB
実行使用メモリ 32,728 KB
最終ジャッジ日時 2023-10-21 13:36:17
合計ジャッジ時間 1,976 ms
ジャッジサーバーID
(参考情報)
judge9 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php

$input1 = trim(fgets(STDIN));

list($player1,$player1Point,$player1hand) = explode(" ", $input1);

$input2 = trim(fgets(STDIN));

list($player2,$player2Point,$player2hand) = explode(" ", $input2);

if($player1Point > $player2Point){
    echo $player1."\n";
}else if($player1Point < $player2Point){
    echo $player2."\n";
}else{
    echo "-1"."\n";
}
0