結果
| 問題 |
No.885 アマリクエリ
|
| コンテスト | |
| ユーザー |
simamumu
|
| 提出日時 | 2019-09-13 21:58:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 572 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 66,048 KB |
| 最終ジャッジ日時 | 2024-07-04 04:14:26 |
| 合計ジャッジ時間 | 6,782 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 18 |
ソースコード
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())
N = inp()
AA = np.array(sorted(inpl()))
Q = inp()
XX = inpl()
root = INF
for x in XX:
if root < x:
print(ans)
else:
AA %= x
ans = sum(AA)
root = x
print(ans)
simamumu