結果

問題 No.2515 Similar Triangles
ユーザー DeltaStruct
提出日時 2023-10-27 21:24:38
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 242 bytes
コンパイル時間 2,958 ms
コンパイル使用メモリ 243,560 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-25 13:24:17
合計ジャッジ時間 3,221 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  int x0,y0,x1,y1,x2; cin >> x0 >> y0 >> x1 >> y1 >> x2;
  cout << (sqrt(x0*x0+y0*y0)*sqrt((x2-x0)*(x2-x0)+y0*y0)==sqrt(x1*x1+y1*y1)*sqrt((x2-x1)*(x2-x1)+y1*y1)?"Yes":"No") << endl;
}
0