結果
問題 |
No.2246 1333-like Number
|
ユーザー |
|
提出日時 | 2023-08-01 15:08:53 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 351 bytes |
コンパイル時間 | 10,187 ms |
コンパイル使用メモリ | 190,628 KB |
実行使用メモリ | 30,976 KB |
最終ジャッジ日時 | 2024-10-11 06:44:40 |
合計ジャッジ時間 | 11,589 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 WA * 2 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (264 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/
ソースコード
let n = stdin.ReadLine () |> int let digits = n / 36 let num = n % 36 let mutable b_head = "" let mutable n_count = num for i = 8 downto 1 do if b_head = "" && n_count - i <= 0 then b_head <- (string (9-i)) + (string (9-i+n_count)) n_count <- n_count - i b_head + String.replicate digits (string b_head.[1]) |> printfn "%s"