結果
問題 | No.300 平方数 |
ユーザー |
![]() |
提出日時 | 2015-11-13 23:34:58 |
言語 | OCaml (5.2.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 538 ms |
コンパイル使用メモリ | 19,820 KB |
実行使用メモリ | 13,636 KB |
最終ジャッジ日時 | 2024-10-08 23:40:44 |
合計ジャッジ時間 | 3,221 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 TLE * 1 -- * 25 |
ソースコード
let rec f c acc n =if n = 1 thenaccelse if n mod c = 0 then beginif (n / c) mod c = 0 thenf c acc (n / c / c)elsef c (acc * c) (n / c)endelsef (c + 1) acc nlet x = read_int ()let () = print_int (f 2 1 x); print_newline ()