結果
| 問題 |
No.1343 Dividing Digit
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-11 00:43:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 143 bytes |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 181,632 KB |
| 最終ジャッジ日時 | 2024-11-27 03:41:17 |
| 合計ジャッジ時間 | 64,343 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 21 |
ソースコード
N, K = map(int, input().split())
A = list(map(int, input().split()))
S = sum(A)
AA = 0
for i in range(N):
AA += A[N-i-1]*(K**i)
print(AA%S)