Information
- ID
- 1821
- Time
- 1000ms
- Memory
- 512MiB
- Difficulty
- 2
- Tags
- # Submissions
- 31
- Accepted
- 22
- Uploaded By
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define LL long long
#define ph push_back
#define INF 0x3f3f3f3f
#define PII pair<int, int>
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
for(int i=0;i<=31;i++){
for(int j=4;j>=0;j--){
cout<<(i>>j&1);
}
cout<<endl;
}
return 0;
}
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.