結果

問題 No.1343 Dividing Digit
ユーザー matriematrie
提出日時 2021-01-21 09:26:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 31,076 KB
最終ジャッジ日時 2024-12-24 06:46:50
合計ジャッジ時間 67,176 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other TLE * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
L=list(map(int,input().split()))
a=sum(L)
b=0
for i in L:
	if i<1:continue
	n-=1
	b+=pow(k,n)*i
print(b%a)
0