Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
47114 hanxizhe 练38.1 宇宙大爆炸 C++ 无测评数据 0 MS 0 KB 1079 2024-05-12 15:21:06

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main(){ /*int g,m,x; cout<<std::left<<setw(5)<<"公鸡"; cout<<std::left<<setw(5)<<"母鸡"; cout<<std::left<<setw(5)<<"小鸡"<<endl; for(int i = 1;i<=100/3;i++){ for(int j = 1;j<=100-i;j++){ for(int k = 1;k<=100-i-j;k++){ if((i*3+j*2+k/3)==100&&(i+j+k)==100&&k%3==0){ cout<<std::left<<setw(5)<<i; cout<<std::left<<setw(5)<<j; cout<<std::left<<setw(5)<<k<<endl; } } } } double h,a = 0,b = 0; cin>>h; for(int i = 1;i<=10;i++){ a = a+h+b; b = h*0.5; h = b; } cout<<a<<endl; cout<<b; long long n,k,cnt = 0; cin>>n>>k; for(int i = 1;i<=n;i++){ if(i%k==0) cnt++; } cout<<cnt; int n = 0; while(cin>>n){ for(int i = 1;i<=n;i++){ for(int j = 1;j<=n;j++){ if((i==j)||(i+j==n+1)){ cout<<"x"; }else{ cout<<" "; } } cout<<endl; } cout<<endl; }*/ int n = 0; cin>>n; for(int i = 1;i<=n*2-1;i++){ for(int j = 1;j<=n*2-1;j++){ cout<<"*"; } cout<<endl; } return 0; }