結果
問題 | No.499 7進数変換 |
ユーザー | nobigomu |
提出日時 | 2018-06-05 17:50:22 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 81 ms / 1,000 ms |
コード長 | 261 bytes |
コンパイル時間 | 5,527 ms |
コンパイル使用メモリ | 161,888 KB |
実行使用メモリ | 24,812 KB |
最終ジャッジ日時 | 2023-09-12 22:28:31 |
合計ジャッジ時間 | 9,296 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
20,540 KB |
testcase_01 | AC | 79 ms
24,708 KB |
testcase_02 | AC | 79 ms
22,720 KB |
testcase_03 | AC | 78 ms
22,852 KB |
testcase_04 | AC | 78 ms
22,660 KB |
testcase_05 | AC | 77 ms
22,664 KB |
testcase_06 | AC | 76 ms
22,596 KB |
testcase_07 | AC | 78 ms
24,692 KB |
testcase_08 | AC | 78 ms
20,528 KB |
testcase_09 | AC | 77 ms
22,664 KB |
testcase_10 | AC | 79 ms
24,812 KB |
testcase_11 | AC | 79 ms
24,744 KB |
testcase_12 | AC | 77 ms
22,592 KB |
testcase_13 | AC | 77 ms
22,636 KB |
testcase_14 | AC | 77 ms
22,552 KB |
testcase_15 | AC | 78 ms
24,640 KB |
testcase_16 | AC | 79 ms
22,776 KB |
testcase_17 | AC | 78 ms
22,712 KB |
testcase_18 | AC | 79 ms
24,700 KB |
testcase_19 | AC | 81 ms
24,692 KB |
testcase_20 | AC | 78 ms
24,740 KB |
testcase_21 | AC | 77 ms
22,648 KB |
testcase_22 | AC | 77 ms
20,656 KB |
testcase_23 | AC | 77 ms
24,576 KB |
testcase_24 | AC | 79 ms
22,712 KB |
testcase_25 | AC | 77 ms
22,688 KB |
testcase_26 | AC | 77 ms
22,656 KB |
testcase_27 | AC | 76 ms
24,628 KB |
testcase_28 | AC | 79 ms
22,776 KB |
testcase_29 | AC | 78 ms
22,744 KB |
testcase_30 | AC | 79 ms
22,656 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved. /home/judge/data/code/Main.fs(3,21): warning FS0020: The result of this expression has type 'System.Text.StringBuilder' and is implicitly ignored. Consider using 'ignore' to discard this value explicitly, e.g. 'expr |> ignore', or 'let' to bind the result to a name, e.g. 'let result = expr'.
ソースコード
let f () = let rec iter n (sb:System.Text.StringBuilder) = if n>0 then sb.Insert(0,n%7); iter (n/7) sb else sb.ToString() match stdin.ReadLine() with | "0" -> "0" | n -> iter (int n) (new System.Text.StringBuilder()) f () |> printfn "%s"