10 2024 档案
摘要:#include <iostream> #include <vector> using namespace std; int main(){ vector <int> a; a.push_back(3); a.push_back(2); a.push_back(0); for(int i=0;i<a
阅读全文
摘要:#include <iostream> #include <cmath> using namespace std; void a1(int n){ int a[n],i=0,sum=0; for(i=0;n>=1;i++){ a[i]=n%2; n/=2; } for(int j=i-1;j>=0;
阅读全文