結果

問題 No.327 アルファベット列
ユーザー ichibanshiboriichibanshibori
提出日時 2016-05-15 01:08:21
言語 F#
(F# 4.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 9,353 ms
コンパイル使用メモリ 186,300 KB
実行使用メモリ 30,976 KB
最終ジャッジ日時 2024-04-16 08:28:07
合計ジャッジ時間 15,016 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
30,720 KB
testcase_01 AC 78 ms
30,720 KB
testcase_02 AC 76 ms
30,848 KB
testcase_03 AC 75 ms
30,592 KB
testcase_04 AC 75 ms
30,720 KB
testcase_05 AC 75 ms
30,592 KB
testcase_06 AC 75 ms
30,592 KB
testcase_07 AC 75 ms
30,832 KB
testcase_08 AC 76 ms
30,592 KB
testcase_09 AC 76 ms
30,848 KB
testcase_10 AC 77 ms
30,848 KB
testcase_11 AC 78 ms
30,720 KB
testcase_12 AC 78 ms
30,720 KB
testcase_13 AC 77 ms
30,848 KB
testcase_14 AC 75 ms
30,716 KB
testcase_15 AC 78 ms
30,848 KB
testcase_16 AC 76 ms
30,976 KB
testcase_17 AC 76 ms
30,592 KB
testcase_18 AC 75 ms
30,592 KB
testcase_19 AC 76 ms
30,848 KB
testcase_20 AC 77 ms
30,720 KB
testcase_21 AC 77 ms
30,848 KB
testcase_22 AC 77 ms
30,976 KB
testcase_23 AC 78 ms
30,720 KB
testcase_24 AC 77 ms
30,708 KB
testcase_25 AC 76 ms
30,592 KB
testcase_26 AC 76 ms
30,720 KB
testcase_27 AC 75 ms
30,716 KB
testcase_28 AC 77 ms
30,720 KB
testcase_29 AC 78 ms
30,848 KB
testcase_30 AC 78 ms
30,464 KB
testcase_31 AC 77 ms
30,848 KB
testcase_32 AC 76 ms
30,592 KB
testcase_33 AC 76 ms
30,592 KB
testcase_34 AC 75 ms
30,588 KB
testcase_35 AC 75 ms
30,592 KB
testcase_36 AC 76 ms
30,592 KB
testcase_37 AC 77 ms
30,848 KB
testcase_38 AC 77 ms
30,720 KB
testcase_39 AC 76 ms
30,592 KB
testcase_40 AC 77 ms
30,716 KB
testcase_41 AC 75 ms
30,720 KB
testcase_42 AC 76 ms
30,592 KB
testcase_43 AC 77 ms
30,848 KB
testcase_44 AC 77 ms
30,848 KB
testcase_45 AC 78 ms
30,592 KB
testcase_46 AC 76 ms
30,976 KB
testcase_47 AC 75 ms
30,720 KB
testcase_48 AC 76 ms
30,720 KB
testcase_49 AC 76 ms
30,720 KB
testcase_50 AC 75 ms
30,720 KB
testcase_51 AC 77 ms
30,720 KB
testcase_52 AC 77 ms
30,976 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (252 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/

ソースコード

diff #

let ALPHA = ['A'..'Z']

let doIt () =
    let rec odai rlist N =
        let Q, R = N / 26UL, ALPHA.[int (N % 26UL)]

        if Q = 0UL then R :: rlist
        else odai (R :: rlist) (Q - 1UL)

    let N = stdin.ReadLine () |> uint64
    odai [] N |> Array.ofList |> (fun arr -> System.String(arr)) |> printfn "%s"

doIt ()
0