結果
問題 |
No.2241 Reach 1
|
ユーザー |
|
提出日時 | 2025-08-18 22:37:11 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 744 bytes |
コンパイル時間 | 3,253 ms |
コンパイル使用メモリ | 274,748 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-18 22:37:16 |
合計ジャッジ時間 | 4,665 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include<bits/stdc++.h> #if __has_include(<atcoder/all>) #endif using namespace std; #define LL(...) ll __VA_ARGS__;lin(__VA_ARGS__) #define defpp template<ostream&o=cout>void pp(const auto&...a){[[maybe_unused]]const char*c="";((o<<c<<a,c=" "),...);o<<'\n';}void epp(const auto&...a){pp<cerr>(a...);} #define entry defpp void main();void main2();}int main(){my::io();my::main();}namespace my{ namespace my{ void io(){cin.tie(nullptr)->sync_with_stdio(0);cout<<fixed<<setprecision(15);} using ll=long long; void lin(auto&...a){(cin>>...>>a);} constexpr auto odd(auto x){return x&1;} } namespace my{ ll popcount(ll x){return __builtin_popcountll(x);} } namespace my{entry void main(){ LL(N); if(popcount(N)==1)pp(1); else pp(3-odd(N)); }}