結果
問題 | No.26 シャッフルゲーム |
ユーザー | mondo |
提出日時 | 2019-07-29 14:51:45 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 8 ms / 5,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 12,116 KB |
実行使用メモリ | 12,292 KB |
最終ジャッジ日時 | 2023-09-15 11:52:53 |
合計ジャッジ時間 | 916 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 8 ms
12,184 KB |
testcase_01 | AC | 8 ms
12,208 KB |
testcase_02 | AC | 7 ms
12,268 KB |
testcase_03 | AC | 8 ms
12,292 KB |
testcase_04 | AC | 7 ms
12,232 KB |
testcase_05 | AC | 7 ms
12,264 KB |
testcase_06 | AC | 7 ms
12,232 KB |
testcase_07 | AC | 7 ms
12,268 KB |
testcase_08 | AC | 8 ms
12,224 KB |
testcase_09 | AC | 7 ms
12,216 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?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;