結果

問題 No.1161 Many Powers
ユーザー dangodango
提出日時 2023-06-14 16:47:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 162 ms / 2,000 ms
コード長 100 bytes
コンパイル時間 1,378 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 76,092 KB
最終ジャッジ日時 2023-09-05 04:04:54
合計ジャッジ時間 5,352 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,116 KB
testcase_01 AC 73 ms
71,264 KB
testcase_02 AC 72 ms
71,112 KB
testcase_03 AC 75 ms
71,296 KB
testcase_04 AC 72 ms
71,276 KB
testcase_05 AC 81 ms
75,912 KB
testcase_06 AC 83 ms
75,952 KB
testcase_07 AC 71 ms
71,468 KB
testcase_08 AC 115 ms
75,996 KB
testcase_09 AC 117 ms
75,736 KB
testcase_10 AC 95 ms
75,920 KB
testcase_11 AC 109 ms
75,924 KB
testcase_12 AC 93 ms
76,072 KB
testcase_13 AC 131 ms
76,088 KB
testcase_14 AC 153 ms
75,944 KB
testcase_15 AC 143 ms
75,884 KB
testcase_16 AC 161 ms
76,036 KB
testcase_17 AC 132 ms
76,092 KB
testcase_18 AC 115 ms
75,960 KB
testcase_19 AC 102 ms
75,956 KB
testcase_20 AC 162 ms
76,084 KB
testcase_21 AC 104 ms
75,940 KB
testcase_22 AC 157 ms
75,876 KB
testcase_23 AC 73 ms
71,272 KB
testcase_24 AC 72 ms
71,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C = map(int,input().split())
print(sum((A - i + C) // C * pow(i, B, C) for i in range(C)) % C)
0