結果
| 問題 |
No.356 円周上を回る3つの動点の一致
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-19 08:17:05 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 5,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 196 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 8,192 KB |
| 最終ジャッジ日時 | 2024-10-13 21:11:11 |
| 合計ジャッジ時間 | 2,604 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 48 |
ソースコード
#yuki_356 import fractions t1=int(raw_input()) t2=int(raw_input()) t3=int(raw_input()) d=t1*t2*t3 n1=(t3-t1)*t2 n2=(t2-t1)*t3 n=fractions.gcd(n1,n2) g=fractions.gcd(n,d) print "%d/%d" % (d/g,n/g)