結果
| 問題 | No.487 2017 Calculation(2017の計算) |
| コンテスト | |
| ユーザー |
yukicoder
|
| 提出日時 | 2017-02-25 01:22:42 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 2,157 ms |
| コンパイル使用メモリ | 103,680 KB |
| 実行使用メモリ | 22,912 KB |
| 最終ジャッジ日時 | 2025-01-03 08:12:50 |
| 合計ジャッジ時間 | 2,688 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / 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 = new BigInteger(1);
for (int i = 0; i < 2017 * 2; i++)
{
v *= 2017;
}
v += 2017;
Console.WriteLine(v % M);
}
}
yukicoder