結果
| 問題 | No.983 Convolution |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-02-11 14:05:16 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 66 ms / 2,000 ms |
| + 503µs | |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 29,648 KB |
| 最終ジャッジ日時 | 2026-09-07 06:40:27 |
| 合計ジャッジ時間 | 3,883 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
# coding: utf-8 # Your code here! import sys readline = sys.stdin.readline read = sys.stdin.read n,*a = [int(i) if i != "-1" else 0 for i in read().split()] from math import gcd from functools import reduce g = reduce(gcd,a) if g: print(g*g) else: print(-1)
convexineq