結果
| 問題 | No.1343 Dividing Digit |
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-07-12 15:18:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 138 bytes |
| 記録 | |
| コンパイル時間 | 3,878 ms |
| コンパイル使用メモリ | 84,880 KB |
| 実行使用メモリ | 285,584 KB |
| 最終ジャッジ日時 | 2026-03-08 07:44:15 |
| 合計ジャッジ時間 | 63,397 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 TLE * 20 |
ソースコード
n,k=map(int,input().split())
A=list(map(int,input().split()))
x=0
for i in range(n):
x+=A[i]*(pow(k,n-i-1))
ans=x%sum(A)
print(ans)
nohakai3