結果

問題 No.2515 Similar Triangles
ユーザー yumekawayuiyumekawayui
提出日時 2023-10-27 21:24:51
言語 C++17(clang)
(17.0.6 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 756 bytes
コンパイル時間 4,872 ms
コンパイル使用メモリ 185,660 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-27 21:24:59
合計ジャッジ時間 5,548 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 1 ms
4,372 KB
testcase_02 AC 2 ms
4,372 KB
testcase_03 AC 2 ms
4,372 KB
testcase_04 AC 2 ms
4,372 KB
testcase_05 AC 1 ms
4,372 KB
testcase_06 AC 1 ms
4,372 KB
testcase_07 AC 2 ms
4,372 KB
testcase_08 AC 2 ms
4,372 KB
testcase_09 AC 1 ms
4,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/extc++.h>
using namespace std;
using ld = long double; 
const vector<int> dx = {0, 0, 1, -1};
const vector<int> dy = {1, -1, 0, 0};
#define vec vector
#define int long long
#define double long double
//cout<<setprecision(10)<<fixed<<..
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repp(i, x, n) for (int i = x; i < (int)(n); i++)
#define pii pair<int,int>
#define pq priority_queue

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int x,y,a,b,X;
    cin>>x>>y>>a>>b>>X;
    double S1=abs(X*y)/2.0;
    double S2=abs(X*b)/2.0;
    if(y==b){
        cout<<"Yes\n";
    }else{
        cout<<"No\n";
    }

}
0