結果
問題 | No.487 2017 Calculation(2017の計算) |
ユーザー |
![]() |
提出日時 | 2017-02-25 01:11:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 2,616 ms |
コンパイル使用メモリ | 103,808 KB |
実行使用メモリ | 18,304 KB |
最終ジャッジ日時 | 2025-01-03 08:05:32 |
合計ジャッジ時間 | 2,343 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;public class Program{static void Main(){int M = int.Parse(Console.ReadLine());long v = 1;for (int i = 0; i < 2017 * 2; i++){v *= 2017;v %= M;}v += 2017;v %= M;Console.WriteLine(v);}}