Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
168288 C班-范浩宇 分形图1 C++ 输出超限 0 1000 MS 256 KB 1760 2024-08-20 09:21:44

Tests(0/5):


#include<bits/stdc++.h> using namespace std; int n; int main(){ while(n != -1){ cin>>n; if(n == 1){ cout<<"X"<<endl; cout<<"-"<<endl; }else if(n == 2){ cout<<"X X"<<endl; cout<<" X"<<endl; cout<<"X X"<<endl; cout<<"-"<<endl; }else if(n == 3){ cout<<"X X X X"<<endl; cout<<" X X"<<endl; cout<<"X X X X"<<endl; cout<<" X X"<<endl; cout<<" X"<<endl; cout<<" X X"<<endl; cout<<"X X X X"<<endl; cout<<" X X"<<endl; cout<<"X X X X"<<endl; cout<<"-"<<endl; }else if(n == 4){ cout<<"X X X X X X X X"<<endl; cout<<" X X X X"<<endl; cout<<"X X X X X X X X"<<endl; cout<<" X X X X"<<endl; cout<<" X X"<<endl; cout<<" X X X X"<<endl; cout<<"X X X X X X X X"<<endl; cout<<" X X X X"<<endl; cout<<"X X X X X X X X"<<endl; cout<<" X X X X"<<endl; cout<<" X X"<<endl; cout<<" X X X X"<<endl; cout<<" X X"<<endl; cout<<" X"<<endl; cout<<" X X"<<endl; cout<<" X X X X"<<endl; cout<<" X X"<<endl; cout<<" X X X X"<<endl; cout<<"X X X X X X X X"<<endl; cout<<" X X X X"<<endl; cout<<"X X X X X X X X"<<endl; cout<<" X X X X"<<endl; cout<<" X X"<<endl; cout<<" X X X X"<<endl; cout<<"X X X X X X X X"<<endl; cout<<" X X X X"<<endl; cout<<"X X X X X X X X"<<endl; cout<<"-"<<endl; } } }


测评信息: