結果
問題 |
No.523 LED
|
ユーザー |
|
提出日時 | 2017-07-22 22:40:57 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 407 ms / 2,000 ms |
コード長 | 550 bytes |
コンパイル時間 | 948 ms |
コンパイル使用メモリ | 107,652 KB |
実行使用メモリ | 25,808 KB |
最終ジャッジ日時 | 2024-10-09 10:03:30 |
合計ジャッジ時間 | 4,790 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Problem523 { class Program { static void Main(string[] args) { long N = long.Parse(Console.ReadLine()); long ans = 1; for(long i=2; i <= 2* N; i++) { long j = i; if (j % 2 == 0) j /= 2; ans = ans * j % 1000000007; } Console.WriteLine(ans); } } }