您的位置:首页 > 其它

NBUT 1452 Ezreal (模拟水题)

2015-08-21 23:19 375 查看

[1452] Ezreal

时间限制: 1000 ms 内存限制: 65535 K

问题描述

There are a LCD (Liquid Crystal Display) on Ezreal's arm. The LCD is composed of liquid crystal, and the LCD is 16 lines and 48 rows. How did it work?

#pragma comprint(linker, "/STACK:1024000000,1024000000")
#include<cstdio>
#include<string>
#include<iostream>
#include<cstring>
#include<cmath>
#include<stack>
#include<queue>
#include<vector>
#include<map>
#include<stdlib.h>
#include<time.h>
#include<algorithm>
#define LL __int64
#define FIN freopen("in.txt","r",stdin)
using namespace std;
char str[10][50],str1[10][50];
int main()
{
int kase,num,val;
scanf("%d",&kase);
while(kase--)
{
for(int i=0;i<8;i++)
{
for(int j=0;j<32;j++)
str[i][j]='.';
str[i][32]=0;
}
for(int i=0;i<32;i++)
{
scanf("%x",&val);
num=0;
while(val)
{
if(val%2)
str[num][i]='*';
val/=2;
num++;
}
}
for(int i=0;i<8;i++)
{
for(int j=0;j<32;j++)
str1[i][j]='.';
str1[i][32]=0;
}
for(int i=0;i<32;i++)
{
scanf("%x",&val);
num=0;
while(val)
{
if(val%2)
str1[num][i]='*';
val/=2;
num++;
}
}
for(int i=0;i<8;i++)
printf("%s\n",str[i]);
for(int i=0;i<8;i++)
printf("%s\n",str1[i]);
}
return 0;
}


View Code
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: