結果
問題 |
No.487 2017 Calculation(2017の計算)
|
ユーザー |
![]() |
提出日時 | 2017-02-25 01:25:30 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 2,583 ms |
コンパイル使用メモリ | 110,848 KB |
実行使用メモリ | 23,040 KB |
最終ジャッジ日時 | 2025-01-03 08:18:41 |
合計ジャッジ時間 | 3,108 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Numerics; public class Program { static void Main() { int M = int.Parse(Console.ReadLine()); BigInteger v = 1; for (int i = 0; i < 2017 * 2; i++) { v *= 2017; } v += 2017; Console.WriteLine(v % M); } }