結果
| 問題 |
No.1343 Dividing Digit
|
| コンテスト | |
| ユーザー |
Ultimate_Tea_04
|
| 提出日時 | 2021-01-17 16:19:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 143 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 34,340 KB |
| 最終ジャッジ日時 | 2024-11-29 19:35:49 |
| 合計ジャッジ時間 | 67,995 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 22 |
ソースコード
n,k = map(int,input().split())
a = list(map(int,input().split()))
s = sum(a)
ans = 0
for i in range(n):
ans += a[n-1-i]*(k**i)
print(ans%s)
Ultimate_Tea_04