結果
問題 |
No.2392 二平方和
|
ユーザー |
|
提出日時 | 2023-08-04 09:39:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 346 bytes |
コンパイル時間 | 565 ms |
コンパイル使用メモリ | 67,968 KB |
実行使用メモリ | 13,636 KB |
最終ジャッジ日時 | 2024-10-14 06:37:32 |
合計ジャッジ時間 | 4,765 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 10 TLE * 1 -- * 5 |
ソースコード
#include <iostream> #include <math.h> using namespace std; int main(){ int P; cin >> P; for (int i = 1;i <= P;i++){ for (int j = 1;j <= P;j++){ if (pow(i,i) + pow(j,j) == P){ cout << "Yes" << endl; return 0;; } } } cout << "No" << endl; return 0; }