結果
| 問題 |
No.983 Convolution
|
| コンテスト | |
| ユーザー |
chinchilla
|
| 提出日時 | 2020-02-16 15:00:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 170 ms / 2,000 ms |
| コード長 | 142 bytes |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 29,744 KB |
| 最終ジャッジ日時 | 2024-10-06 14:30:39 |
| 合計ジャッジ時間 | 5,525 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
import math, functools n = int(input()) a = [int(w) for w in input().split() if int(w)>0] print(functools.reduce(math.gcd, a)**2 if a else -1)
chinchilla