結果

問題 No.2795 Perfect Number
ユーザー shiomusubi496
提出日時 2024-06-28 21:28:12
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 2,163 ms
コンパイル使用メモリ 190,704 KB
最終ジャッジ日時 2025-02-22 00:55:03
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:3:27: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    3 |         long long n; scanf("%lld", &n);
      |                      ~~~~~^~~~~~~~~~~~

ソースコード

diff #

#include <bits/stdc++.h>
int main() {
	long long n; scanf("%lld", &n);
	puts(n == 6 || n == 28 || n == 496 || n == 8128 || n == 33550336 || n == 8589869056 || n == 137438691328 ? "Yes" : "No");
}
0