結果

問題 No.747 循環小数N桁目 Hard
ユーザー bluemegane
提出日時 2018-10-20 08:01:05
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 792 ms
コンパイル使用メモリ 106,932 KB
実行使用メモリ 113,076 KB
最終ジャッジ日時 2024-11-19 02:09:14
合計ジャッジ時間 203,585 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 48 WA * 13 TLE * 59
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System.Numerics;
using System;

public class Hello
{
    public static void Main()
    {
        var n = BigInteger.Parse(Console.ReadLine().Trim());
        var k = BigInteger.Parse(Console.ReadLine().Trim());
        var n2 = n % 6;
        var k2 = k % 6;
        var a = (int)BigInteger.ModPow(n2, k2, 6);
        Console.WriteLine("428571"[a]);
    }
}
0