bitset的用法
#include<bits/stdc++.h> using namespace std; const int N=1e5+9; int main() { int n;cin>>n; int cnt; int sum=1; for(int i=1;i<=n;++i) { cnt=bitset<32>(i).count(); sum*=cnt; } cout<<sum; return 0; } ``` ```
By signing up a QFNU-OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your QFNU-OJ universal account