結果
問題 | No.24 数当てゲーム |
ユーザー |
![]() |
提出日時 | 2019-07-29 13:18:46 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 45 ms / 5,000 ms |
コード長 | 398 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 32,400 KB |
実行使用メモリ | 31,508 KB |
最終ジャッジ日時 | 2024-07-02 15:17:07 |
合計ジャッジ時間 | 1,100 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
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);