結果
| 問題 |
No.2821 A[i] ← 2A[j] - A[i]
|
| コンテスト | |
| ユーザー |
Koi
|
| 提出日時 | 2024-07-26 21:26:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 239 bytes |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 82,556 KB |
| 実行使用メモリ | 134,968 KB |
| 最終ジャッジ日時 | 2024-07-26 21:26:19 |
| 合計ジャッジ時間 | 4,281 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 32 |
ソースコード
import math
N=int(input())
A=list(map(int,input().split()))
for i in range(N):
if(i==0):
print(0)
elif(i==1):
print(abs(A[1]-A[0]))
c=math.gcd(A[0],A[1])
else:
c=math.gcd(c,A[i])
print(c)
Koi