#include <bits/stdc++.h>
using namespace std;
string foo(int n);
int main()
{
#ifdef ONLINE_JUDGE
#else
freopen("in.txt", "r", stdin);
#endif
int a[10][32];
int i, j;
for(i = 0; i < 10; i++){
for(j = 0; j < 32; j++){
cin >> a[i][j];
}
}
for(i = 0; i < 10; i++){
for(j = 0; j < 32; j++){
cout << foo(a[i][j]);
if(j % 2 == 1) cout << endl;
}
}
}
string foo(int n)
{
string str;
int i;
for(i = 0; i < 8; i++){
if (n % 2 == 1) str += "#";
else str += " ";
n /= 2;
}
reverse(str.begin(), str.end());
return str;
}
2018 第九届蓝桥杯省赛总结 + 解题报告(C语言B组)2.明码
最新推荐文章于 2023-04-05 12:24:49 发布