結果

問題 No.26 シャッフルゲーム
ユーザー mondomondo
提出日時 2019-07-29 14:51:03
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 12,044 KB
実行使用メモリ 12,264 KB
最終ジャッジ日時 2023-09-15 11:52:27
合計ジャッジ時間 711 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,264 KB
testcase_01 AC 8 ms
12,228 KB
testcase_02 AC 7 ms
12,224 KB
testcase_03 WA -
testcase_04 AC 7 ms
12,216 KB
testcase_05 WA -
testcase_06 AC 7 ms
12,224 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 8 ms
12,260 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$cupnumber = trim(fgets(STDIN));
$count = trim(fgets(STDIN));
for($i = 0; $i < $count; $i++) {
    list($number1, $number2) = explode(' ', trim(fgets(STDIN)));
    if($number1 == $cupnumber) {
        $cupnumber = $number2;
    // } else if ($number2 == $cupnumber) {
    //     $cupnumber = $number1;
    }
}
echo $cupnumber;
0