結果
| 問題 |
No.983 Convolution
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-02-11 14:05:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 108 ms / 2,000 ms |
| コード長 | 263 bytes |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 29,264 KB |
| 最終ジャッジ日時 | 2024-10-01 07:30:15 |
| 合計ジャッジ時間 | 3,016 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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