結果
問題 | No.1343 Dividing Digit |
ユーザー |
👑 ![]() |
提出日時 | 2021-03-16 00:18:48 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 149 bytes |
コンパイル時間 | 574 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 135,504 KB |
最終ジャッジ日時 | 2024-11-07 12:54:51 |
合計ジャッジ時間 | 5,077 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 21 |
ソースコード
N,K=map(int,input().split()) A=list(map(int,input().split())) A_sum=sum(A) X=0 power=1 for a in A[::-1]: X+=a*power power*=K print(X%A_sum)