結果

問題 No.2007 Arbitrary Mod (Easy)
ユーザー yas_yasyuyas_yasyu
提出日時 2022-07-15 21:52:25
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 603 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 71,508 KB
最終ジャッジ日時 2023-09-10 01:27:50
合計ジャッジ時間 7,370 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,312 KB
testcase_01 AC 75 ms
70,968 KB
testcase_02 AC 74 ms
70,988 KB
testcase_03 AC 74 ms
71,220 KB
testcase_04 AC 74 ms
71,460 KB
testcase_05 AC 75 ms
71,312 KB
testcase_06 AC 72 ms
71,396 KB
testcase_07 AC 72 ms
71,420 KB
testcase_08 AC 74 ms
71,396 KB
testcase_09 AC 74 ms
71,508 KB
testcase_10 AC 73 ms
71,308 KB
testcase_11 AC 75 ms
71,308 KB
testcase_12 AC 74 ms
71,392 KB
testcase_13 AC 73 ms
71,388 KB
testcase_14 AC 72 ms
71,192 KB
testcase_15 AC 75 ms
71,320 KB
testcase_16 AC 74 ms
71,396 KB
testcase_17 AC 74 ms
71,508 KB
testcase_18 AC 75 ms
71,376 KB
testcase_19 AC 74 ms
71,132 KB
testcase_20 AC 73 ms
71,488 KB
testcase_21 AC 74 ms
71,496 KB
testcase_22 AC 74 ms
71,356 KB
testcase_23 AC 74 ms
71,392 KB
testcase_24 AC 73 ms
71,396 KB
testcase_25 AC 75 ms
71,436 KB
testcase_26 AC 75 ms
71,504 KB
testcase_27 AC 75 ms
71,324 KB
testcase_28 AC 74 ms
71,344 KB
testcase_29 AC 73 ms
71,316 KB
testcase_30 AC 74 ms
71,324 KB
testcase_31 AC 73 ms
71,304 KB
testcase_32 AC 74 ms
70,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,N = map(int,input().split())
M = 1
cnt = 0

while(10**7>M):
	M *= A
	cnt+=1

print(M)

if(cnt>N):
	cnt = N
print((A**cnt)%M)
0