結果
問題 | No.885 アマリクエリ |
ユーザー |
![]() |
提出日時 | 2025-03-09 23:57:57 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 439 ms |
コンパイル使用メモリ | 82,380 KB |
実行使用メモリ | 270,108 KB |
最終ジャッジ日時 | 2025-03-09 23:58:03 |
合計ジャッジ時間 | 5,475 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 1 TLE * 1 -- * 17 |
ソースコード
N = int(input()) A = list(map(int, input().split())) Q = int(input()) X = list(map(int, input().split())) a = A for x in X: t = 0 b = [] for y in a: m = y % x if m > 0: b.append(m) t += m a = b print(t)