結果

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

ソースコード

diff #

from math import gcd

a = int(input())
b = int(input())
c = int(input())
l = 1
for x in [a, b, c]:
    l = l * x // gcd(l, x)

g = 0
for x in [a, b, c]:
    g = gcd(g, x - 1)

x = gcd(l, g)
print(l // x, g // x, sep="/")
0