結果

問題 No.747 循環小数N桁目 Hard
ユーザー bluemeganebluemegane
提出日時 2018-10-20 08:01:05
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 827 ms
コンパイル使用メモリ 102,144 KB
実行使用メモリ 51,892 KB
最終ジャッジ日時 2024-04-29 19:25:35
合計ジャッジ時間 12,615 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,296 KB
testcase_01 AC 27 ms
17,920 KB
testcase_02 AC 27 ms
17,920 KB
testcase_03 AC 27 ms
17,920 KB
testcase_04 AC 27 ms
17,920 KB
testcase_05 AC 28 ms
18,048 KB
testcase_06 AC 27 ms
18,176 KB
testcase_07 AC 27 ms
17,792 KB
testcase_08 AC 27 ms
17,920 KB
testcase_09 WA -
testcase_10 AC 26 ms
18,176 KB
testcase_11 AC 26 ms
18,048 KB
testcase_12 AC 26 ms
17,920 KB
testcase_13 AC 27 ms
18,176 KB
testcase_14 WA -
testcase_15 AC 27 ms
18,048 KB
testcase_16 AC 26 ms
17,920 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 27 ms
18,048 KB
testcase_20 AC 29 ms
18,048 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 25 ms
17,920 KB
testcase_24 AC 27 ms
18,176 KB
testcase_25 WA -
testcase_26 AC 27 ms
17,920 KB
testcase_27 AC 24 ms
17,920 KB
testcase_28 AC 27 ms
18,176 KB
testcase_29 AC 27 ms
18,176 KB
testcase_30 AC 27 ms
18,176 KB
testcase_31 AC 26 ms
17,920 KB
testcase_32 AC 27 ms
18,176 KB
testcase_33 TLE -
testcase_34 AC 214 ms
22,268 KB
testcase_35 AC 512 ms
45,820 KB
testcase_36 AC 1,348 ms
45,924 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 TLE -
testcase_41 TLE -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
testcase_60 -- -
testcase_61 -- -
testcase_62 -- -
testcase_63 -- -
testcase_64 -- -
testcase_65 -- -
testcase_66 -- -
testcase_67 -- -
testcase_68 -- -
testcase_69 -- -
testcase_70 -- -
testcase_71 -- -
testcase_72 -- -
testcase_73 -- -
testcase_74 -- -
testcase_75 -- -
testcase_76 -- -
testcase_77 -- -
testcase_78 -- -
testcase_79 -- -
testcase_80 -- -
testcase_81 -- -
testcase_82 -- -
testcase_83 -- -
testcase_84 -- -
testcase_85 -- -
testcase_86 -- -
testcase_87 -- -
testcase_88 -- -
testcase_89 -- -
testcase_90 -- -
testcase_91 -- -
testcase_92 -- -
testcase_93 -- -
testcase_94 -- -
testcase_95 -- -
testcase_96 -- -
testcase_97 -- -
testcase_98 -- -
testcase_99 -- -
testcase_100 -- -
testcase_101 -- -
testcase_102 -- -
testcase_103 -- -
testcase_104 -- -
testcase_105 -- -
testcase_106 -- -
testcase_107 -- -
testcase_108 -- -
testcase_109 -- -
testcase_110 -- -
testcase_111 -- -
testcase_112 -- -
testcase_113 -- -
testcase_114 -- -
testcase_115 -- -
testcase_116 -- -
testcase_117 -- -
testcase_118 -- -
testcase_119 -- -
testcase_120 -- -
testcase_121 -- -
testcase_122 -- -
testcase_123 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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