結果
問題 | No.933 おまわりさんこいつです |
ユーザー | guricerin |
提出日時 | 2019-12-18 10:52:41 |
言語 | F# (F# 4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 850 bytes |
コンパイル時間 | 6,132 ms |
コンパイル使用メモリ | 165,676 KB |
実行使用メモリ | 55,192 KB |
最終ジャッジ日時 | 2023-09-20 05:36:39 |
合計ジャッジ時間 | 13,907 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 125 ms
24,084 KB |
testcase_01 | AC | 125 ms
26,020 KB |
testcase_02 | AC | 127 ms
26,064 KB |
testcase_03 | AC | 125 ms
23,924 KB |
testcase_04 | AC | 126 ms
24,008 KB |
testcase_05 | AC | 125 ms
23,948 KB |
testcase_06 | AC | 126 ms
26,004 KB |
testcase_07 | AC | 126 ms
26,008 KB |
testcase_08 | AC | 127 ms
24,120 KB |
testcase_09 | AC | 128 ms
23,980 KB |
testcase_10 | AC | 127 ms
24,108 KB |
testcase_11 | AC | 139 ms
24,376 KB |
testcase_12 | AC | 151 ms
30,576 KB |
testcase_13 | AC | 471 ms
30,488 KB |
testcase_14 | AC | 864 ms
48,912 KB |
testcase_15 | TLE | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
コンパイルメッセージ
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(36,5): warning FS0020: The result of this expression has type 'int' 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'.
ソースコード
open System open System.Collections.Generic [<AutoOpen>] module Cin = let read f = stdin.ReadLine() |> f let reada f = stdin.ReadLine().Split() |> Array.map f let readInts() = read string |> Seq.toArray |> Array.map (fun x -> Convert.ToInt32(x.ToString())) module Util = let strRev s = s |> Seq.rev |> Seq.map string |> String.concat "" [<EntryPoint>] let main _ = let N = read int let P = reada int64 let mutable k = Array.fold (fun acc (x: int64) -> acc * Numerics.BigInteger(x)) 1I P while k > 9I do let mutable a = k let mutable dsum = 0I while a > 0I do dsum <- dsum + (a % 10I) a <- a / 10I k <- dsum printfn "%A" k 0 // return an integer exit code 0 // return an integer exit code