結果
問題 |
No.2555 Intriguing Triangle
|
ユーザー |
|
提出日時 | 2023-11-29 12:20:52 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 3,142 ms |
コンパイル使用メモリ | 243,868 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-26 15:18:13 |
合計ジャッジ時間 | 3,522 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 28 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; for(int i=1;i<b+c-a;i++){ for(int j=1;j<b+c-a-i;j++){ if (i*(a+i)*c*c==b*b*j*(a+j) && abs(b-c)<i+j+a && i+j+a<b+c){ cout<<"Yes"<<endl; return 0; } } } cout<<"No"<<endl; return 0; }