結果
問題 |
No.356 円周上を回る3つの動点の一致
|
ユーザー |
![]() |
提出日時 | 2016-04-01 23:25:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2024-10-02 09:21:41 |
合計ジャッジ時間 | 3,404 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 3 WA * 45 |
ソースコード
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import fractions import itertools def main(): fs = [fractions.Fraction(1, x) for x in (int(input()) for _ in range(3))] ans = 0 for x, y in itertools.combinations(fs, 2): ans = max(ans, 1 / abs(x - y)) print("{}/{}".format(ans.numerator, ans.denominator)) if __name__ == '__main__': main()