結果

問題 No.747 循環小数N桁目 Hard
ユーザー vwxyzvwxyz
提出日時 2024-04-06 04:26:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 150 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2024-04-06 04:26:22
合計ジャッジ時間 9,851 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 28 ms
9,984 KB
testcase_02 AC 27 ms
9,984 KB
testcase_03 AC 28 ms
9,984 KB
testcase_04 AC 29 ms
9,984 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 29 ms
9,984 KB
testcase_09 AC 29 ms
9,984 KB
testcase_10 AC 28 ms
9,984 KB
testcase_11 WA -
testcase_12 AC 28 ms
9,984 KB
testcase_13 WA -
testcase_14 AC 29 ms
9,984 KB
testcase_15 WA -
testcase_16 AC 29 ms
9,984 KB
testcase_17 AC 28 ms
9,984 KB
testcase_18 WA -
testcase_19 AC 29 ms
9,984 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 28 ms
9,984 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 28 ms
9,984 KB
testcase_28 AC 30 ms
9,984 KB
testcase_29 AC 28 ms
9,984 KB
testcase_30 AC 40 ms
9,984 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 44 ms
10,112 KB
testcase_34 WA -
testcase_35 AC 34 ms
10,112 KB
testcase_36 AC 38 ms
10,112 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 48 ms
10,112 KB
testcase_41 WA -
testcase_42 AC 44 ms
10,112 KB
testcase_43 AC 33 ms
10,112 KB
testcase_44 AC 39 ms
10,112 KB
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 42 ms
10,112 KB
testcase_48 AC 35 ms
10,112 KB
testcase_49 AC 39 ms
10,112 KB
testcase_50 AC 33 ms
10,112 KB
testcase_51 AC 34 ms
10,112 KB
testcase_52 AC 30 ms
10,112 KB
testcase_53 AC 92 ms
10,240 KB
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 100 ms
10,240 KB
testcase_59 AC 38 ms
10,112 KB
testcase_60 AC 81 ms
10,240 KB
testcase_61 WA -
testcase_62 AC 61 ms
10,112 KB
testcase_63 AC 45 ms
10,112 KB
testcase_64 WA -
testcase_65 AC 29 ms
9,984 KB
testcase_66 AC 39 ms
10,112 KB
testcase_67 WA -
testcase_68 WA -
testcase_69 AC 43 ms
10,112 KB
testcase_70 AC 32 ms
10,112 KB
testcase_71 AC 31 ms
10,112 KB
testcase_72 WA -
testcase_73 WA -
testcase_74 AC 42 ms
10,112 KB
testcase_75 AC 34 ms
10,112 KB
testcase_76 WA -
testcase_77 AC 35 ms
10,112 KB
testcase_78 AC 41 ms
10,112 KB
testcase_79 AC 42 ms
10,112 KB
testcase_80 AC 42 ms
10,112 KB
testcase_81 AC 31 ms
9,984 KB
testcase_82 AC 37 ms
10,112 KB
testcase_83 AC 31 ms
10,112 KB
testcase_84 AC 51 ms
10,112 KB
testcase_85 AC 46 ms
10,112 KB
testcase_86 AC 37 ms
10,112 KB
testcase_87 WA -
testcase_88 WA -
testcase_89 AC 41 ms
10,112 KB
testcase_90 WA -
testcase_91 WA -
testcase_92 AC 41 ms
10,112 KB
testcase_93 WA -
testcase_94 WA -
testcase_95 AC 79 ms
10,240 KB
testcase_96 AC 66 ms
10,240 KB
testcase_97 AC 77 ms
10,240 KB
testcase_98 WA -
testcase_99 AC 75 ms
10,240 KB
testcase_100 AC 72 ms
10,240 KB
testcase_101 AC 50 ms
10,240 KB
testcase_102 WA -
testcase_103 AC 58 ms
10,112 KB
testcase_104 WA -
testcase_105 WA -
testcase_106 AC 56 ms
10,112 KB
testcase_107 AC 56 ms
10,112 KB
testcase_108 AC 57 ms
10,112 KB
testcase_109 AC 57 ms
10,112 KB
testcase_110 AC 57 ms
10,112 KB
testcase_111 AC 57 ms
10,112 KB
testcase_112 AC 57 ms
10,112 KB
testcase_113 WA -
testcase_114 AC 56 ms
10,112 KB
testcase_115 AC 58 ms
10,112 KB
testcase_116 WA -
testcase_117 AC 56 ms
10,112 KB
testcase_118 AC 56 ms
10,112 KB
testcase_119 AC 56 ms
10,112 KB
testcase_120 AC 57 ms
10,112 KB
testcase_121 AC 59 ms
10,112 KB
testcase_122 AC 56 ms
10,112 KB
testcase_123 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.set_int_max_str_digits(10**6)
N=int(input())
K=int(input())
N%=6
if K>100:
    K%=2
    K+=50
ans="285124"[(pow(N,K,6)-1)%6]
print(ans)
0