結果
| 問題 | 
                            No.1161 Many Powers
                             | 
                    
| ユーザー | 
                             StarMatyan
                         | 
                    
| 提出日時 | 2020-08-22 14:06:23 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 246 bytes | 
| コンパイル時間 | 405 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 17,700 KB | 
| 最終ジャッジ日時 | 2024-10-15 08:22:45 | 
| 合計ジャッジ時間 | 4,071 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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