結果
問題 | No.677 10^Nの約数 |
ユーザー |
![]() |
提出日時 | 2018-04-27 22:51:48 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 347 ms / 2,000 ms |
コード長 | 578 bytes |
コンパイル時間 | 8,473 ms |
コンパイル使用メモリ | 197,076 KB |
実行使用メモリ | 36,384 KB |
最終ジャッジ日時 | 2024-06-27 22:07:24 |
合計ジャッジ時間 | 16,153 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (232 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
open System let ri () = stdin.ReadLine() |> int let ria () = stdin.ReadLine().Split() |> Array.map int type Sol() = member this.Solve() = let N = ri() let rec pow n k = match k with | 0 -> 1L | _ -> (int64) n * pow n (k - 1) let a = [ for i in 0..N do for j in 0..N do yield (pow 2 i) * (pow 5 j) ] a |> List.sort |> List.iter (fun n -> printfn "%d" n) () let mySol = new Sol() mySol.Solve()