結果
問題 |
No.3073 Fraction Median
|
ユーザー |
![]() |
提出日時 | 2025-03-21 22:42:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 123 bytes |
コンパイル時間 | 1,159 ms |
コンパイル使用メモリ | 82,508 KB |
実行使用メモリ | 275,916 KB |
最終ジャッジ日時 | 2025-03-21 22:42:26 |
合計ジャッジ時間 | 11,064 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 13 |
ソースコード
import math N=int(input()) A=list(map(int,input().split())) A.sort() gcd=math.gcd(A[-1],A[-2]) print(A[-2]//gcd,A[-1]//gcd)