結果

問題 No.356 円周上を回る3つの動点の一致
ユーザー 👑 rin204
提出日時 2022-03-23 16:59:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 872 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-10-11 20:06:55
合計ジャッジ時間 3,768 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd

a = int(input())
b = int(input())
c = int(input())

deno = (b - a) * (c - a)
t1 = (a * b) * (c - a)
t2 = (a * c) * (b - a)
nume = t1 * t2 // gcd(t1, t2)
g = gcd(deno, nume)
print(nume // g, deno // g, sep="/")
0