結果
問題 | No.24 数当てゲーム |
ユーザー | mondo |
提出日時 | 2019-07-29 13:18:46 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 7 ms / 5,000 ms |
コード長 | 398 bytes |
コンパイル時間 | 464 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 12,240 KB |
最終ジャッジ日時 | 2023-09-15 11:48:50 |
合計ジャッジ時間 | 1,533 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 7 ms
12,192 KB |
testcase_01 | AC | 7 ms
12,196 KB |
testcase_02 | AC | 7 ms
12,240 KB |
testcase_03 | AC | 7 ms
12,196 KB |
testcase_04 | AC | 7 ms
12,212 KB |
testcase_05 | AC | 7 ms
12,152 KB |
testcase_06 | AC | 7 ms
12,088 KB |
testcase_07 | AC | 7 ms
12,184 KB |
testcase_08 | AC | 6 ms
12,192 KB |
testcase_09 | AC | 7 ms
12,172 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $array10 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,]; $count = trim(fgets(STDIN)); for($i = 0; $i < $count ; $i++) { $number = explode(' ', trim(fgets(STDIN))); $YESorNO = array_pop($number); if($YESorNO == 'YES') { $array10 = array_intersect($array10, $number); } else if ($YESorNO == 'NO') { $array10 = array_diff($array10, $number); } } echo implode("",$array10);