結果
問題 |
No.1343 Dividing Digit
|
ユーザー |
![]() |
提出日時 | 2022-01-13 00:27:22 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 243 bytes |
コンパイル時間 | 278 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 249,984 KB |
最終ジャッジ日時 | 2024-11-15 18:17:10 |
合計ジャッジ時間 | 65,426 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 TLE * 21 |
ソースコード
n,k = map(int,input().split()) ns=list(map(int,input().split())) nssum=sum(ns) def n_t(X,n): t = 0 cnt=0 for i in range(len(X)-1,-1,-1): t += X[cnt]*(n**i) cnt+=1 return t ns10 = n_t(ns,k) print(ns10%nssum)