結果
| 問題 | No.356 円周上を回る3つの動点の一致 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-03-23 16:50:23 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 225 bytes | 
| コンパイル時間 | 664 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-10-11 19:58:14 | 
| 合計ジャッジ時間 | 4,270 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 31 WA * 17 | 
ソースコード
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, l // x - 1)
x = gcd(l, g)
print(l // x, g // x, sep="/")
            
            
            
        