結果
問題 |
No.2795 Perfect Number
|
ユーザー |
![]() |
提出日時 | 2024-07-09 21:00:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 718 bytes |
コンパイル時間 | 1,524 ms |
コンパイル使用メモリ | 166,068 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-09 21:00:43 |
合計ジャッジ時間 | 3,005 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 5 WA * 30 |
ソースコード
#include "bits/stdc++.h" using namespace std; #define int long long #define ld long double #define rep(i, n) for (int i = 0; i < n; i++) #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) signed main() { int n; cin >> n; int ans = 0; if (n == 6) { cout << "Yes" << endl; return 0; } if (n == 28) { cout << "Yes" << endl; return 0; } if (n == 496) { cout << "Yes" << endl; return 0; } if (n == 8128) { cout << "Yes" << endl; return 0; } if (n == 33550336) { cout << "Yes" << endl; return 0; } if (n == 8589869056) { cout << "Yes" << endl; return 0; } if (n == 137438691328) { cout << "Yes" << endl; return 0; } }