結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2017-03-14 14:52:56 |
言語 | PHP (843.2) |
結果 |
RE
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 32,144 KB |
実行使用メモリ | 45,240 KB |
最終ジャッジ日時 | 2024-06-30 00:44:32 |
合計ジャッジ時間 | 2,467 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 27 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $a = fgets(STDIN); $b = fgets(STDIN); $array = explode(" ", $b); $result = array(); foreach ($array as $value) { if ( ! isset($result[$value])) { $result[$value] = true; } else { $result[$value] = false; } } $count = 0; foreach ($result as $result_item) { if ($result_item == true) { $count++; } } echo $count + "\n";