結果
| 問題 |
No.2241 Reach 1
|
| ユーザー |
planes
|
| 提出日時 | 2023-03-11 00:25:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 371 bytes |
| コンパイル時間 | 1,777 ms |
| コンパイル使用メモリ | 165,956 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-18 05:49:27 |
| 合計ジャッジ時間 | 2,869 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
int main() {
ll N;cin>>N;
for(ll i=0;i<=40;i++) {
if((1LL<<i)==N) cout<<1<<endl;
}
if(N%2!=0) {
cout<<2<<endl;
}
else cout<<3<<endl;
}
planes