結果

問題 No.201 yukicoderじゃんけん
ユーザー
提出日時 2016-01-20 18:41:55
言語 PHP
(843.2)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 919 ms
コンパイル使用メモリ 30,944 KB
実行使用メモリ 31,596 KB
最終ジャッジ日時 2024-09-21 14:51:03
合計ジャッジ時間 1,739 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
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