結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-08-17 18:43:23 |
言語 | OCaml (5.2.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 406 ms |
コンパイル使用メモリ | 21,248 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-10-09 00:26:07 |
合計ジャッジ時間 | 1,937 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
ソースコード
module S = Set.Make (struct type t = string let compare = String.compare end) let () = let n = read_int () in let rec doit i s = if i * i > n then s else doit (i + 1) (if n mod i <> 0 then s else S.(s |> add (string_of_int i) |> add (string_of_int (n / i)))) in doit 1 S.empty |> S.cardinal |> Printf.printf "%d\n"