結果

問題 No.251 大きな桁の復習問題(1)
ユーザー AreTrash
提出日時 2016-06-12 22:43:09
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 366 bytes
コンパイル時間 969 ms
コンパイル使用メモリ 111,380 KB
実行使用メモリ 51,628 KB
最終ジャッジ日時 2024-10-09 13:06:56
合計ジャッジ時間 8,099 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 3
other AC * 7 WA * 2 TLE * 1 -- * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Numerics;

namespace No251{
    public class Program{
        public static void Main(string[] args){
            var N = BigInteger.Parse(Console.ReadLine());
            var M = BigInteger.Parse(Console.ReadLine());
            var P = 129402307;
            Console.WriteLine(BigInteger.ModPow(N % P, M % (P - 1), P));
        }
    }
}
0