#include <iostream>
#include <math.h>
#include <stdio.h>
void tablerun(int n);
using namespace std;
int main(){
int n = 0;
cin>>n;
tablerun(n);
return 0;
}
void tablerun(int n){
double x,y;
int H = 3, coutt = 0;
int num = 0;
for(y = -4;y <= 0;y += 0.3)
{
for(x = -4; x <= 4; x+= 0.2)
if(fabs(sqrt(x*x+y*y) - H*sin(2*atan(y/x))) <= 1
||fabs(sqrt(x*x+y*y) - H*sin(2*atan(-y/x))) <= 1)
{
if(coutt != 190 &&coutt != 175&&coutt != 176&&coutt != 177&&coutt != 144&&coutt != 143&&coutt != 142&&coutt != 141&&coutt != 140&&coutt != 139&&coutt != 162&&coutt != 161&&coutt != 160&&coutt != 159&&coutt != 158&&coutt != 157 )
{
printf("*");
coutt++;
}
else {
if(n == 0){
if(coutt == 159)cout<<"西";
if(coutt == 160)cout<<"瓜";
}
if(n == 1){
if(coutt == 159)cout<<"芒";
if(coutt == 160)cout<<"果";
}
if(n == 2){
if(coutt == 159)cout<<"菠";
if(coutt == 160)cout<<"萝";
}
if(n == 3){
if(coutt == 159)cout<<"苹";
if(coutt == 160)cout<<"果";
}
printf(" ");
coutt++;
}
}
else if(num<4&&coutt!=160)printf(" ");
if(coutt==160)num++;
printf("\n");
}
for(y=-1;y<=0;y+=0.2)
{
for(x=-4;x<=4;x+=0.2)
if(fabs(y)-0.65*x*x>=0.2)
{
if(coutt != 190 &&coutt != 175&&coutt != 176&&coutt != 177&&coutt != 144&&coutt != 143&&coutt != 142&&coutt != 141&&coutt != 140&&coutt != 139&&coutt != 162&&coutt != 161&&coutt != 160&&coutt != 159&&coutt != 158&&coutt != 157 )
{
printf("*");
coutt++;
}
else{
printf(" ");
coutt++;
}
}
else printf(" ");
printf("\n");
}
} |
|