結果

問題 No.747 循環小数N桁目 Hard
ユーザー jupiro
提出日時 2020-01-15 13:08:32
言語 PyPy3
(7.0.0)
結果
AC  
実行時間 236 ms
コード長 78 Byte
コンパイル時間 776 ms
使用メモリ 80,856 KB
最終ジャッジ日時 2020-01-15 13:08:56

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
0_sample_1.txt AC 128 ms
78,392 KB
0_sample_2.txt AC 128 ms
78,292 KB
0_sample_3.txt AC 128 ms
78,108 KB
0_sample_4.txt AC 144 ms
78,436 KB
1_small_1.txt AC 136 ms
78,228 KB
1_small_2.txt AC 132 ms
78,232 KB
1_small_3.txt AC 128 ms
78,128 KB
1_small_4.txt AC 128 ms
78,080 KB
1_small_5.txt AC 128 ms
78,252 KB
1_small_6.txt AC 132 ms
78,420 KB
1_small_7.txt AC 124 ms
78,420 KB
4_large1.txt AC 136 ms
78,264 KB
4_large2.txt AC 132 ms
78,144 KB
4_large3.txt AC 152 ms
78,132 KB
4_large4.txt AC 132 ms
78,076 KB
4_large5.txt AC 128 ms
78,084 KB
4_large6.txt AC 128 ms
78,268 KB
4_large7.txt AC 124 ms
78,280 KB
4_large8.txt AC 132 ms
78,328 KB
4_large9.txt AC 124 ms
78,120 KB
4_large10.txt AC 136 ms
78,104 KB
4_large11.txt AC 136 ms
78,116 KB
4_large12.txt AC 132 ms
78,108 KB
4_large13.txt AC 140 ms
78,100 KB
4_large14.txt AC 128 ms
78,320 KB
4_large15.txt AC 128 ms
78,088 KB
4_large16.txt AC 128 ms
78,104 KB
4_large17.txt AC 128 ms
78,104 KB
4_large18.txt AC 132 ms
78,496 KB
4_large19.txt AC 132 ms
78,284 KB
4_large20.txt AC 124 ms
78,124 KB
4_large21.txt AC 128 ms
78,156 KB
4_large22.txt AC 124 ms
77,988 KB
8_euglena1.txt AC 148 ms
79,112 KB
8_euglena2.txt AC 128 ms
78,156 KB
8_euglena3.txt AC 132 ms
78,048 KB
8_euglena4.txt AC 132 ms
79,036 KB
8_euglena5.txt AC 128 ms
78,376 KB
8_euglena6.txt AC 136 ms
78,236 KB
8_euglena7.txt AC 144 ms
78,208 KB
8_euglena8.txt AC 160 ms
79,048 KB
8_euglena9.txt AC 160 ms
79,160 KB
8_euglena10.txt AC 152 ms
78,980 KB
8_euglena11.txt AC 136 ms
78,500 KB
8_euglena12.txt AC 140 ms
79,184 KB
8_euglena13.txt AC 156 ms
78,956 KB
8_euglena14.txt AC 156 ms
78,900 KB
8_euglena15.txt AC 164 ms
78,988 KB
8_euglena16.txt AC 148 ms
78,132 KB
8_euglena17.txt AC 160 ms
78,876 KB
8_euglena18.txt AC 144 ms
78,464 KB
8_euglena19.txt AC 132 ms
78,120 KB
8_euglena20.txt AC 136 ms
78,044 KB
8_euglena21.txt AC 200 ms
80,856 KB
8_euglena22.txt AC 180 ms
80,144 KB
8_euglena23.txt AC 184 ms
80,616 KB
8_euglena24.txt AC 180 ms
79,896 KB
8_euglena25.txt AC 140 ms
78,164 KB
8_euglena26.txt AC 216 ms
80,628 KB
8_euglena27.txt AC 144 ms
78,272 KB
8_euglena28.txt AC 188 ms
80,160 KB
8_euglena29.txt AC 164 ms
79,820 KB
8_euglena30.txt AC 184 ms
79,672 KB
8_euglena_1.txt AC 152 ms
79,080 KB
8_euglena_2.txt AC 140 ms
78,796 KB
8_euglena_3.txt AC 124 ms
78,176 KB
8_euglena_4.txt AC 140 ms
78,900 KB
8_euglena_5.txt AC 136 ms
78,996 KB
8_euglena_6.txt AC 160 ms
78,952 KB
8_euglena_7.txt AC 180 ms
78,948 KB
8_euglena_8.txt AC 140 ms
78,408 KB
8_euglena_9.txt AC 136 ms
78,420 KB
8_euglena_10.txt AC 148 ms
79,060 KB
8_euglena_11.txt AC 156 ms
78,708 KB
8_euglena_12.txt AC 152 ms
79,104 KB
8_euglena_13.txt AC 128 ms
78,148 KB
8_euglena_14.txt AC 136 ms
78,272 KB
8_euglena_15.txt AC 128 ms
78,296 KB
8_euglena_16.txt AC 140 ms
78,916 KB
8_euglena_17.txt AC 148 ms
79,164 KB
8_euglena_18.txt AC 140 ms
79,276 KB
8_euglena_19.txt AC 132 ms
78,288 KB
8_euglena_20.txt AC 148 ms
78,852 KB
8_euglena_21.txt AC 140 ms
78,424 KB
8_euglena_22.txt AC 160 ms
79,344 KB
8_euglena_23.txt AC 144 ms
79,500 KB
8_euglena_24.txt AC 148 ms
78,316 KB
8_euglena_25.txt AC 172 ms
79,220 KB
8_euglena_26.txt AC 148 ms
78,512 KB
8_euglena_27.txt AC 144 ms
78,956 KB
8_euglena_28.txt AC 144 ms
79,020 KB
8_euglena_29.txt AC 148 ms
78,968 KB
8_euglena_30.txt AC 140 ms
78,936 KB
8192_english1.txt AC 152 ms
79,152 KB
8192_english2.txt AC 192 ms
80,012 KB
8192_english3.txt AC 192 ms
80,240 KB
8192_english4.txt AC 188 ms
79,528 KB
8192_english5.txt AC 188 ms
79,732 KB
8192_english6.txt AC 236 ms
80,448 KB
8192_english7.txt AC 204 ms
80,012 KB
8192_english8.txt AC 180 ms
80,176 KB
8192_english9.txt AC 160 ms
79,648 KB
8192_english10.txt AC 144 ms
79,100 KB
8192_english_1.txt AC 156 ms
79,604 KB
8192_english_2.txt AC 164 ms
79,852 KB
8192_english_3.txt AC 156 ms
79,584 KB
8192_english_4.txt AC 160 ms
79,716 KB
8192_english_5.txt AC 180 ms
79,948 KB
8192_english_6.txt AC 164 ms
79,568 KB
8192_english_7.txt AC 164 ms
79,432 KB
8192_english_8.txt AC 172 ms
79,584 KB
8192_english_9.txt AC 184 ms
79,852 KB
8192_english_10.txt AC 168 ms
79,584 KB
8192_english_11.txt AC 168 ms
79,572 KB
8192_english_12.txt AC 160 ms
79,536 KB
8192_english_13.txt AC 160 ms
79,600 KB
8192_english_14.txt AC 168 ms
79,680 KB
8192_english_15.txt AC 168 ms
79,888 KB
8192_english_16.txt AC 180 ms
79,888 KB
8192_english_17.txt AC 176 ms
79,784 KB
8192_english_18.txt AC 176 ms
79,552 KB
8192_english_19.txt AC 184 ms
79,888 KB
8192_english_20.txt AC 168 ms
79,440 KB
8388608_sleepy.txt AC 164 ms
79,712 KB
テストケース一括ダウンロード

ソースコード

diff #
N = int(input())
K = int(input())

s = "428571"

t = pow(N%6,K,6)
print(s[t])
0