結果

問題 No.182 新規性の虜
ユーザー po1415po1415
提出日時 2015-05-29 00:25:53
言語 PHP
(8.3.4)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 193 bytes
コンパイル時間 1,519 ms
コンパイル使用メモリ 18,392 KB
実行使用メモリ 37,468 KB
最終ジャッジ日時 2023-08-27 07:19:08
合計ジャッジ時間 3,165 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
18,876 KB
testcase_01 AC 13 ms
18,808 KB
testcase_02 AC 13 ms
18,752 KB
testcase_03 AC 12 ms
18,840 KB
testcase_04 AC 12 ms
18,868 KB
testcase_05 AC 13 ms
18,836 KB
testcase_06 AC 13 ms
18,800 KB
testcase_07 AC 12 ms
18,880 KB
testcase_08 AC 25 ms
29,140 KB
testcase_09 AC 36 ms
37,360 KB
testcase_10 AC 34 ms
37,468 KB
testcase_11 AC 29 ms
29,080 KB
testcase_12 AC 19 ms
23,012 KB
testcase_13 AC 13 ms
18,944 KB
testcase_14 AC 12 ms
18,696 KB
testcase_15 AC 11 ms
18,744 KB
testcase_16 AC 14 ms
18,900 KB
testcase_17 AC 12 ms
19,016 KB
testcase_18 AC 24 ms
27,088 KB
testcase_19 AC 22 ms
23,032 KB
testcase_20 AC 18 ms
20,888 KB
testcase_21 AC 26 ms
27,116 KB
testcase_22 AC 21 ms
22,924 KB
testcase_23 AC 15 ms
18,896 KB
testcase_24 AC 37 ms
37,344 KB
testcase_25 AC 28 ms
27,032 KB
testcase_26 AC 16 ms
21,000 KB
testcase_27 AC 14 ms
18,924 KB
evil01.txt AC 39 ms
37,352 KB
evil02.txt AC 39 ms
37,156 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN, '%d', $num);

$fmt = '%s';
for ($i = 1; $i < $num; $i++) {
	$fmt .= ' %s';
}
$arrInput = fscanf(STDIN, $fmt);

echo count(array_keys(array_count_values($arrInput), '1'));
?>
0