結果
問題 | No.2392 二平方和 |
ユーザー |
![]() |
提出日時 | 2023-03-14 23:09:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 690 bytes |
コンパイル時間 | 3,768 ms |
コンパイル使用メモリ | 249,416 KB |
最終ジャッジ日時 | 2025-02-11 11:24:19 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
#include<atcoder/all>using namespace atcoder;#include <bits/stdc++.h>template<class T> inline bool chmin(T&a, T b){if(a > b){a = b; return true;}else{return false;}}template<class T> inline bool chmax(T&a, T b){if(a < b){a = b; return true;}else{return false;}}#define ll long long#define double long double#define rep(i,n) for(int i=0;i<(n);i++)#define REP(i,n) for(int i=1;i<=(n);i++)#define mod (ll)(1e9+7)#define inf (ll)(3e18+7)#define eps (double)(1e-9)#define pi (double) acos(-1)#define all(x) x.begin(),x.end()#define rall(x) x.rbegin(),x.rend()using namespace std;int main() {int p;cin >> p;cout << (p % 4 == 1 || p == 2 ? "Yes" : "No") << endl;}