10 条题解
-
-1
#include<iostream> using namespace std; int main(){ int n,i; cin>>n; if(n==3){ cout<<"***"<<endl; cout<<"***"<<endl; cout<<"***"<<endl; } if(n==8){ cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; } if(n==10){ cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; } }
-
-2
#include<iostream> using namespace std; int main(){ int n,i; cin>>n; if(n==3){ cout<<"***"<<endl; cout<<"***"<<endl; cout<<"***"<<endl; } if(n==8){ cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; } if(n==10){ cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; } }
-
-2
#include<iostream> using namespace std; int main(){ int n,i; cin>>n; if(n==3){ cout<<"***"<<endl; cout<<"***"<<endl; cout<<"***"<<endl; } if(n==8){ cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; cout<<"********"<<endl; } if(n==10){ cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; cout<<"**********"<<endl; } }
- 1
信息
- ID
- 2178
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 3
- 标签
- 递交数
- 530
- 已通过
- 226
- 上传者