結果
| 問題 |
No.356 円周上を回る3つの動点の一致
|
| コンテスト | |
| ユーザー |
ckawatak
|
| 提出日時 | 2018-07-28 16:02:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 5,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 405 ms |
| コンパイル使用メモリ | 82,008 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-10-13 21:12:52 |
| 合計ジャッジ時間 | 3,320 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 48 |
ソースコード
t1 = int(input())
t2 = int(input())
t3 = int(input())
def gcd(a, b):
if b == 0:
return a
return gcd(b, a % b)
x = t3 * t2 * t1
y = gcd((t2-t1) * t3, (t3-t2) * t1)
z = gcd(x, y)
print('%d/%d' % (x/z, y/z))
ckawatak