結果

問題 No.182 新規性の虜
ユーザー takutakutakutaku
提出日時 2021-06-14 14:38:14
言語 PHP
(8.2.11)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 292 bytes
コンパイル時間 1,291 ms
コンパイル使用メモリ 18,384 KB
実行使用メモリ 33,388 KB
最終ジャッジ日時 2023-08-25 23:37:34
合計ジャッジ時間 3,575 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
18,880 KB
testcase_01 AC 13 ms
18,868 KB
testcase_02 AC 13 ms
18,848 KB
testcase_03 AC 13 ms
18,904 KB
testcase_04 AC 13 ms
18,840 KB
testcase_05 AC 13 ms
18,928 KB
testcase_06 AC 13 ms
18,936 KB
testcase_07 AC 14 ms
18,908 KB
testcase_08 AC 20 ms
27,000 KB
testcase_09 AC 25 ms
33,388 KB
testcase_10 AC 25 ms
31,284 KB
testcase_11 AC 21 ms
26,996 KB
testcase_12 AC 20 ms
23,028 KB
testcase_13 AC 13 ms
18,888 KB
testcase_14 AC 13 ms
18,852 KB
testcase_15 AC 13 ms
18,720 KB
testcase_16 AC 13 ms
18,820 KB
testcase_17 AC 14 ms
18,924 KB
testcase_18 AC 18 ms
27,016 KB
testcase_19 AC 16 ms
22,852 KB
testcase_20 AC 15 ms
20,832 KB
testcase_21 AC 20 ms
26,968 KB
testcase_22 AC 17 ms
22,748 KB
testcase_23 AC 13 ms
18,868 KB
testcase_24 AC 23 ms
33,148 KB
testcase_25 AC 17 ms
24,916 KB
testcase_26 AC 15 ms
20,832 KB
testcase_27 AC 13 ms
18,876 KB
evil01.txt AC 26 ms
33,376 KB
evil02.txt AC 28 ms
33,360 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    
    $num = trim(fgets(STDIN));
    $array_num = explode(" ",trim(fgets(STDIN)));
    $count = array_count_values($array_num);
    $result = 0;
    
    
    foreach($count as $value) {
        if($value == 1) {
            $result++;
        }
    }
    
    echo $result;
    
?>
0