結果

問題 No.182 新規性の虜
ユーザー GoryudyumaGoryudyuma
提出日時 2015-04-17 23:56:23
言語 PHP
(8.3.4)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 1,646 ms
コンパイル使用メモリ 18,580 KB
実行使用メモリ 33,500 KB
最終ジャッジ日時 2023-08-27 07:13:44
合計ジャッジ時間 3,210 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,784 KB
testcase_01 AC 16 ms
18,944 KB
testcase_02 AC 16 ms
18,888 KB
testcase_03 AC 16 ms
18,868 KB
testcase_04 AC 15 ms
18,944 KB
testcase_05 AC 16 ms
18,652 KB
testcase_06 AC 16 ms
18,932 KB
testcase_07 AC 16 ms
18,680 KB
testcase_08 AC 26 ms
26,856 KB
testcase_09 AC 34 ms
33,500 KB
testcase_10 AC 32 ms
31,440 KB
testcase_11 AC 28 ms
26,924 KB
testcase_12 AC 21 ms
22,620 KB
testcase_13 AC 15 ms
18,896 KB
testcase_14 AC 16 ms
18,828 KB
testcase_15 AC 16 ms
18,816 KB
testcase_16 AC 16 ms
18,656 KB
testcase_17 AC 16 ms
18,816 KB
testcase_18 AC 25 ms
26,860 KB
testcase_19 AC 22 ms
22,800 KB
testcase_20 AC 20 ms
20,716 KB
testcase_21 AC 27 ms
26,896 KB
testcase_22 AC 21 ms
22,728 KB
testcase_23 AC 16 ms
18,792 KB
testcase_24 AC 31 ms
33,044 KB
testcase_25 AC 24 ms
24,884 KB
testcase_26 AC 18 ms
20,916 KB
testcase_27 AC 16 ms
18,812 KB
evil01.txt AC 32 ms
33,276 KB
evil02.txt AC 34 ms
33,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

fgets(STDIN);
$a=explode(' ',trim(fgets(STDIN)));
$b=array();
foreach($a as $x){
	if(isset($b[$x])){
		$b[$x]+=1;
	}else{
		$b[$x]=1;
	}
}
$c=0;
foreach($b as $x => $y){
	if($y==1){
		$c++;
	}
}
echo $c.PHP_EOL;
0