結果
| 問題 |
No.3073 Fraction Median
|
| コンテスト | |
| ユーザー |
👑 SPD_9X2
|
| 提出日時 | 2025-03-23 15:37:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 276,252 KB |
| 最終ジャッジ日時 | 2025-03-23 15:37:58 |
| 合計ジャッジ時間 | 16,021 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 1 |
ソースコード
"""
https://yukicoder.me/problems/no/3073
"""
import sys
N = int(input())
A = list(map(int,input().split()))
A.sort()
for i in range(N-1):
if A[i] == A[i+1]:
print (1,1)
sys.exit()
import math
g = math.gcd(A[-1],A[-2])
print ( A[-2]//g , A[-1]//g )
SPD_9X2