結果
| 問題 |
No.1343 Dividing Digit
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-24 13:25:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 137 bytes |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 81,980 KB |
| 実行使用メモリ | 184,664 KB |
| 最終ジャッジ日時 | 2024-12-14 08:10:48 |
| 合計ジャッジ時間 | 64,464 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 21 |
ソースコード
n,k=map(int,input().split())
a=list(map(int,input().split()))
a=a[::-1]
num=0
for i in range(n):
num+=a[i]*pow(k,i)
print(num%sum(a))