結果
問題 |
No.1343 Dividing Digit
|
ユーザー |
![]() |
提出日時 | 2022-07-12 15:16:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 138 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,004 KB |
最終ジャッジ日時 | 2024-06-23 12:50:44 |
合計ジャッジ時間 | 4,478 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 21 |
ソースコード
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)