結果
問題 | No.680 作れる数 |
ユーザー |
|
提出日時 | 2018-04-27 23:04:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 282 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 498 ms |
コンパイル使用メモリ | 62,720 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 22:11:14 |
合計ジャッジ時間 | 2,919 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | main() | ^~~~
ソースコード
#include<iostream> using namespace std; long long n; long long m; main() { cin>>n; for(int i=1;m<=n;i++) { if(n<=m+1) { cout<<"YES"<<endl; return 0; } m+=__builtin_ctz(i)+3; } cout<<"NO"<<endl; }