結果
| 問題 |
No.356 円周上を回る3つの動点の一致
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-22 19:53:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 278 bytes |
| コンパイル時間 | 1,593 ms |
| コンパイル使用メモリ | 165,348 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 19:54:02 |
| 合計ジャッジ時間 | 3,055 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 48 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll gcd(ll p,ll q){
return q?gcd(q,p%q):p;
}
int main(){
ll t1,t2,t3;
ll temp,m;
cin>>t1>>t2>>t3;
m=__gcd((t3-t1)*t2,(t3-t2)*t1);
temp=__gcd(t1*t2*t3,m);
printf("%ld/%ld",t1*t2*t3/temp,m/temp);
return 0;
}