結果
| 問題 | No.1161 Many Powers |
| ユーザー |
StarMatyan
|
| 提出日時 | 2020-08-22 14:06:23 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 530 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 22,104 KB |
| 最終ジャッジ日時 | 2026-05-03 23:54:44 |
| 合計ジャッジ時間 | 5,646 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | AC * 1 WA * 1 RE * 2 TLE * 1 -- * 18 |
ソースコード
import math
first_num = input()
first_s = first_num.split(" ")
max_A = int(first_s[0])
rui = int(first_s[1])
wari = int(first_s[2])
tasi = 0
while(max_A>0):
tasi = tasi + math.pow(max_A,rui)
max_A = max_A-1
tasi = int(tasi%wari)
print(tasi)
StarMatyan