結果
問題 |
No.2555 Intriguing Triangle
|
ユーザー |
|
提出日時 | 2023-12-14 13:05:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 374 bytes |
コンパイル時間 | 1,699 ms |
コンパイル使用メモリ | 165,520 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-27 05:42:26 |
合計ジャッジ時間 | 2,406 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 WA * 5 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int a, b, c, temp; scanf("%d %d %d", &a, &b, &c); for(int i = 1; i < b + c - a; ++i){ for(int j = 1; j < b + c - a - i; ++j){ temp = c * c * j * (j + a); temp -= b * b * i * (i + a); if(temp == 0){ printf("Yes\n"); return 0; } } } printf("No\n"); }