結果
| 問題 | No.1343 Dividing Digit |
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-07-12 15:17:17 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 138 bytes |
| 記録 | |
| コンパイル時間 | 335 ms |
| コンパイル使用メモリ | 85,588 KB |
| 実行使用メモリ | 285,772 KB |
| 最終ジャッジ日時 | 2026-03-08 07:23:29 |
| 合計ジャッジ時間 | 63,353 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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]*(k**((n-i-1)))
ans=x%sum(A)
print(ans)
nohakai3