結果

問題 No.182 新規性の虜
ユーザー 小出雄也とはまた違う人小出雄也とはまた違う人
提出日時 2017-03-14 14:52:56
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 18,868 KB
実行使用メモリ 35,400 KB
最終ジャッジ日時 2023-09-12 12:20:53
合計ジャッジ時間 2,109 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 16 ms
18,984 KB
testcase_03 AC 15 ms
19,020 KB
testcase_04 AC 16 ms
19,048 KB
testcase_05 AC 16 ms
18,984 KB
testcase_06 AC 15 ms
19,032 KB
testcase_07 AC 15 ms
18,988 KB
testcase_08 AC 26 ms
26,852 KB
testcase_09 AC 32 ms
33,364 KB
testcase_10 AC 31 ms
31,456 KB
testcase_11 AC 26 ms
26,972 KB
testcase_12 AC 20 ms
22,964 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 15 ms
18,960 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 16 ms
19,060 KB
testcase_24 AC 31 ms
35,400 KB
testcase_25 WA -
testcase_26 AC 18 ms
20,928 KB
testcase_27 AC 15 ms
18,944 KB
evil01.txt AC 32 ms
33,568 KB
evil02.txt AC 33 ms
33,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?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";
0