結果
問題 |
No.2246 1333-like Number
|
ユーザー |
|
提出日時 | 2023-08-01 15:05:42 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 7,752 ms |
コンパイル使用メモリ | 191,820 KB |
実行使用メモリ | 30,976 KB |
最終ジャッジ日時 | 2024-10-11 06:40:46 |
合計ジャッジ時間 | 11,688 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (258 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"