Merge pull request #17 from QuestionableE/master

Create 1292_ysh.cpp
This commit is contained in:
Kirigaya Kazuto 2016-05-23 22:19:32 +08:00
commit e0f777ca9d

61
QUSTOJ/1292_ysh.cpp Normal file
View File

@ -0,0 +1,61 @@
#include <stdio.h>
#define sample scanf("%d", &b);
#define hahaha printf("/\\ /\\\n _");
#define outspace printf(" ");
#define bigchange printf("\n");
int main()
{
int a;
scanf("%d", &a);
for(int i = 0, b; i < a; i++)
{
sample
if(b == 1)
{
hahaha
}
else
{
printf("\n");
for(int j = 0; j < b; j++)
{
for(int k = 0; k < b-j-1; k++)
{
outspace
}
printf("/");
for(int k = 0; k < j*2; k++)
{
outspace
}
printf("\\");
for(int k = 0; k < b*3-(j+1)*2; k++)
{
outspace
}
printf("/");
for(int k = 0; k < j*2; k++)
{
outspace
}
printf("\\");
bigchange
}
for(int j = 0; j < b-1; j++)
{
bigchange
}
for(int j = 0; j < b*2; j++)
{
outspace
}
for(int j = 0; j < b; j++)
{
printf("_");
}
}
bigchange
}
return 0;
}