結果

問題 No.327 アルファベット列
ユーザー LeonardoneLeonardone
提出日時 2015-12-20 04:51:11
言語 F#
(F# 4.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 11,080 ms
コンパイル使用メモリ 188,800 KB
実行使用メモリ 30,848 KB
最終ジャッジ日時 2024-04-16 07:13:46
合計ジャッジ時間 16,205 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

// yukicoder My Practice
// author: Leonardone @ NEETSDKASU

let n = int64(System.Console.ReadLine())

let al = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

let rec f n r =
    if n < 0L then
        r
    else
        let i = string al.[int(n % 26L)]
        f (n / 26L - 1L) (i + r)

printf "%s" <| f n "\n"
0