結果
問題 | No.727 仲介人moko |
ユーザー |
|
提出日時 | 2018-08-24 22:34:37 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 6 ms / 1,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 680 ms |
コンパイル使用メモリ | 114,360 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-13 01:37:07 |
合計ジャッジ時間 | 1,607 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
import std.stdio, std.array, std.string, std.conv, std.algorithm;import std.typecons, std.range, std.random, std.math, std.container;import std.numeric, std.bigint, core.bitop, std.bitmanip;immutable long MOD = 10^^9 + 7;void main() {auto N = readln.chomp.to!long;long a = 1;long x = 1;foreach (i; 2..N+1) {a = (2 * i - 1) * i % MOD * i % MOD;x = x * a % MOD;}x.writeln;}