結果

問題 No.356 円周上を回る3つの動点の一致
コンテスト
ユーザー rin204
提出日時 2022-03-23 16:51:50
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 220 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 322 ms
コンパイル使用メモリ 84,992 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2026-04-28 04:51:30
合計ジャッジ時間 3,514 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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