結果

問題 No.793 うし数列 2
コンテスト
ユーザー natoriusan
提出日時 2023-07-30 15:45:27
言語 F#
(F# 10.0)
コンパイル:
fsharp_c _filename_
実行:
/usr/bin/dotnet_wrap
結果
RE  
実行時間 -
コード長 320 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5,674 ms
コンパイル使用メモリ 201,244 KB
実行使用メモリ 45,864 KB
最終ジャッジ日時 2026-04-25 14:04:59
合計ジャッジ時間 12,026 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 RE * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (184 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

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"
0