結果
問題 | No.793 うし数列 2 |
ユーザー |
|
提出日時 | 2023-07-30 15:45:27 |
言語 | F# (F# 4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 7,326 ms |
コンパイル使用メモリ | 186,880 KB |
実行使用メモリ | 51,744 KB |
最終ジャッジ日時 | 2024-10-09 10:59:00 |
合計ジャッジ時間 | 11,817 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 TLE * 1 -- * 16 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (238 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/
ソースコード
open System open System.Numerics let mutable n = stdin.ReadLine () |> int64 let mutable s = "1" if n > int64 Int32.MaxValue then s <- s + String.replicate Int32.MaxValue "3" n <- n - int64 Int32.MaxValue else s <- s + String.replicate (int n) "3" (BigInteger.Parse s) % (bigint 1000000007) |> printfn "%A"