結果
問題 |
No.356 円周上を回る3つの動点の一致
|
ユーザー |
|
提出日時 | 2016-06-07 12:49:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 18,080 KB |
最終ジャッジ日時 | 2024-10-08 17:09:16 |
合計ジャッジ時間 | 13,109 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 47 |
ソースコード
#!/usr/bin/env python3 from fractions import Fraction a = Fraction(input()) b = Fraction(input()) c = Fraction(input()) t = 0 dt = 1 / (1/a - 1/b) while True: t += dt assert t / a % 1 == t / b % 1 if t / a % 1 == t / b % 1 == t / c % 1: break print('{}/{}'.format(t.numerator, t.denominator))