Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
47125 | hanxizhe | 练35.3 大大大 | C++ | 无测评数据 | 0 MS | 0 KB | 1275 | 2024-05-12 16:01:18 |
#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; } string s; int cnt; cin>>s; int len = s.size(); for(int i = 0;i<len;i++){ cnt+=s[i]-'0'; } cout<<cnt;*/ float n,m; cin>>n; while((n-int(n))!=0){ n*=10; } cout<<n; return 0; }