結果

問題 No.747 循環小数N桁目 Hard
ユーザー rlangevinrlangevin
提出日時 2023-02-05 19:36:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 85,012 KB
最終ジャッジ日時 2023-09-17 10:28:56
合計ジャッジ時間 14,258 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,496 KB
testcase_01 AC 73 ms
71,428 KB
testcase_02 AC 73 ms
71,004 KB
testcase_03 AC 72 ms
71,192 KB
testcase_04 AC 74 ms
71,500 KB
testcase_05 AC 74 ms
71,504 KB
testcase_06 AC 74 ms
71,384 KB
testcase_07 AC 73 ms
71,548 KB
testcase_08 AC 74 ms
71,500 KB
testcase_09 AC 73 ms
71,180 KB
testcase_10 AC 73 ms
71,452 KB
testcase_11 AC 73 ms
71,204 KB
testcase_12 AC 71 ms
71,308 KB
testcase_13 AC 73 ms
71,416 KB
testcase_14 AC 74 ms
71,204 KB
testcase_15 AC 73 ms
71,188 KB
testcase_16 WA -
testcase_17 AC 73 ms
71,392 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 73 ms
71,216 KB
testcase_21 AC 73 ms
71,248 KB
testcase_22 AC 73 ms
71,284 KB
testcase_23 AC 72 ms
71,248 KB
testcase_24 AC 73 ms
71,360 KB
testcase_25 WA -
testcase_26 AC 72 ms
71,252 KB
testcase_27 WA -
testcase_28 AC 74 ms
71,428 KB
testcase_29 AC 74 ms
71,004 KB
testcase_30 WA -
testcase_31 AC 73 ms
71,364 KB
testcase_32 WA -
testcase_33 AC 83 ms
78,508 KB
testcase_34 AC 80 ms
76,724 KB
testcase_35 AC 82 ms
78,188 KB
testcase_36 AC 81 ms
78,992 KB
testcase_37 AC 79 ms
76,476 KB
testcase_38 AC 81 ms
78,188 KB
testcase_39 AC 79 ms
76,860 KB
testcase_40 AC 84 ms
79,528 KB
testcase_41 AC 84 ms
80,172 KB
testcase_42 AC 82 ms
79,928 KB
testcase_43 WA -
testcase_44 AC 83 ms
78,968 KB
testcase_45 AC 83 ms
78,412 KB
testcase_46 WA -
testcase_47 AC 81 ms
78,868 KB
testcase_48 AC 82 ms
76,936 KB
testcase_49 AC 81 ms
78,872 KB
testcase_50 AC 79 ms
77,200 KB
testcase_51 AC 82 ms
78,632 KB
testcase_52 AC 80 ms
76,828 KB
testcase_53 AC 87 ms
83,200 KB
testcase_54 AC 80 ms
77,968 KB
testcase_55 AC 86 ms
81,296 KB
testcase_56 AC 82 ms
78,592 KB
testcase_57 WA -
testcase_58 AC 88 ms
84,052 KB
testcase_59 AC 82 ms
79,020 KB
testcase_60 AC 82 ms
79,100 KB
testcase_61 AC 85 ms
82,976 KB
testcase_62 AC 80 ms
77,588 KB
testcase_63 AC 83 ms
78,864 KB
testcase_64 AC 83 ms
78,568 KB
testcase_65 AC 77 ms
76,432 KB
testcase_66 AC 82 ms
79,356 KB
testcase_67 WA -
testcase_68 AC 82 ms
78,200 KB
testcase_69 AC 84 ms
79,904 KB
testcase_70 AC 78 ms
77,048 KB
testcase_71 WA -
testcase_72 AC 79 ms
77,072 KB
testcase_73 AC 80 ms
79,020 KB
testcase_74 AC 82 ms
79,864 KB
testcase_75 WA -
testcase_76 AC 80 ms
78,036 KB
testcase_77 WA -
testcase_78 WA -
testcase_79 AC 83 ms
79,968 KB
testcase_80 WA -
testcase_81 AC 79 ms
76,684 KB
testcase_82 AC 74 ms
71,920 KB
testcase_83 AC 80 ms
77,224 KB
testcase_84 WA -
testcase_85 WA -
testcase_86 AC 80 ms
77,576 KB
testcase_87 AC 83 ms
80,472 KB
testcase_88 AC 80 ms
77,968 KB
testcase_89 AC 79 ms
77,348 KB
testcase_90 AC 83 ms
79,928 KB
testcase_91 AC 81 ms
78,008 KB
testcase_92 AC 83 ms
78,968 KB
testcase_93 AC 85 ms
80,824 KB
testcase_94 AC 81 ms
78,376 KB
testcase_95 AC 83 ms
78,900 KB
testcase_96 AC 83 ms
79,100 KB
testcase_97 AC 89 ms
84,408 KB
testcase_98 AC 89 ms
85,012 KB
testcase_99 AC 86 ms
83,812 KB
testcase_100 AC 86 ms
81,196 KB
testcase_101 AC 79 ms
77,544 KB
testcase_102 AC 83 ms
80,208 KB
testcase_103 WA -
testcase_104 AC 84 ms
80,820 KB
testcase_105 WA -
testcase_106 AC 84 ms
80,936 KB
testcase_107 AC 83 ms
81,076 KB
testcase_108 AC 83 ms
80,832 KB
testcase_109 AC 84 ms
80,864 KB
testcase_110 AC 84 ms
80,864 KB
testcase_111 AC 82 ms
81,076 KB
testcase_112 AC 83 ms
81,088 KB
testcase_113 AC 84 ms
80,964 KB
testcase_114 WA -
testcase_115 AC 85 ms
81,144 KB
testcase_116 AC 83 ms
81,004 KB
testcase_117 WA -
testcase_118 AC 84 ms
80,844 KB
testcase_119 AC 83 ms
81,060 KB
testcase_120 AC 83 ms
81,044 KB
testcase_121 AC 83 ms
80,956 KB
testcase_122 AC 82 ms
80,904 KB
testcase_123 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = list(input())
K = list(input())
mod = 6
N = list(map(int, N))
N = N[::-1]
v = 0
ten = 1
for n in N:
    v += n * ten
    ten *= 10
    v %= mod
    ten %= mod
    
K = int(K[-1])
ans = [2, 8, 5, 7, 1, 4, 2]
print(ans[pow(v, K, mod) - 1])
0