結果

問題 No.182 新規性の虜
ユーザー maimai8maimai8
提出日時 2019-06-08 21:12:18
言語 OCaml
(5.1.0)
結果
TLE  
実行時間 -
コード長 293 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 19,836 KB
実行使用メモリ 11,544 KB
最終ジャッジ日時 2023-07-30 07:18:50
合計ジャッジ時間 7,282 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
11,544 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
evil01.txt -- -
evil02.txt -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

let () =
    let n = Scanf.scanf "%d\n" (fun x -> x) in 
    let lst = Array.to_list (Array.init n (fun _ -> Scanf.scanf "%d " (fun x -> x))) in 
    let s = List.fold_left (fun a b -> if List.length (List.filter (fun x -> b = x) lst) = 1 then a + 1 else a) 0 lst in
    Printf.printf "%d\n" s
0