标签:
首师大附中科创教育平台我的刷题记录(给大家刷26--30题吧)
仅供同学们参考,禁止抄袭!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include<iostream> #include<math.h> using namespace std; int main() { double I,R,r,E; cin>>I>>R>>r; E=I*(R+r); cout<<E<<endl; return 0; }
#include<iostream> using namespace std; int main() { int t,n,a; cin>>t>>n; a=n*(t+1); cout<<a<<endl; return 0; }
#include<iostream> using namespace std; int main() { int n; cin>>n; if(n%2==0) { cout<<"是偶数"<<endl; } else { cout<<"是奇数"<<endl; } return 0; }
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(b<a)a=b; if(c<a)a=c; cout<<a; return 0; }
#include<iostream> using namespace std; int main() { int n; cin>>n; if(n<4) cout<<n*95<<endl; if(n>3) cout<<n*95*17/20<<endl; return 0; }
标签:
原文地址:http://www.cnblogs.com/mayitao/p/5884535.html