結果
問題 |
No.2555 Intriguing Triangle
|
ユーザー |
|
提出日時 | 2023-12-14 13:08:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 458 bytes |
コンパイル時間 | 1,459 ms |
コンパイル使用メモリ | 166,200 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-27 05:42:28 |
合計ジャッジ時間 | 2,346 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); if(b > c){ temp = c; c = b; b = temp; } for(int i = 1; i < b + c - a; ++i){ for(int j = max(1, c - a - i + 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"); }