小学题,不注意也会错这么多
小小白技术不高,好歹还有耐心………………
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
#include <iomanip>
void T1(){cout<<"I love Luogu!"; }
void T2(){ cout<<6<<" "<<4;}
void T3(){ cout<<3<<endl<<12<<endl<<2;}
void T4(){
float a=500.0/3.0;
cout<<fixed<<setprecision(3)<<a;}
void T5(){cout<<15;}
void T6(){cout<<sqrt(117);}
void T7(){cout<<110<<endl<<90<<endl<<0;}
void T8(){
float pi=3.141593;
float l=2.0*pi*5.0,s=pi*25.0,v=4.0/3.0*pi*125.0;
cout<<l<<endl<<s<<endl<<v;}
void T9(){cout<<22;}
void T10(){printf("9");}
void T11(){cout<<100.0/3.0;}
void T12(){printf("13\nR");}
void T13(){
float V=4.0/3.0*3.141593*(64.0+1000.0),a;
a=pow(V,1.0/3.0);
a=int(a);
cout<<a;
}
void T14(){
float x=0;
for(int i=0;i<110;i++){
x++;
if(120*x-x*x==3500){
cout<<x;
break;
}
}
}
//主函数
int main(){
int T;
cin>>T;
if (T==1) {T1();}
if (T==2) { T2(); }
if (T==3) {T3();}
if (T==4) { T4();}
if (T==5) { T5(); }
if (T==6) {T6(); }
if (T==7) {T7(); }
if (T==8) {T8();}
if (T==9) {T9(); }
if (T==10) {T10();}
if (T==11) {T11();}
if (T==12) {T12();}
if (T==13) {T13(); }
if (T==14) {T14();}
}
这小学的题目,这么长!——!
哈哈哈~好长——啊——
啊——
在下小小白,小白有耐心,技术嘛?
“Hello World!”是没问题滴!
嘻嘻~