首页 > 其他 > 详细

首师大附中科创教育平台 我的刷题记录(3)

时间:2016-09-03 18:20:07      阅读:182      评论:0      收藏:0      [点我收藏+]

首师大附中科创教育平台我的刷题记录(给大家刷11--15题吧)

仅供同学们参考,禁止抄袭!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

技术分享
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
    int x,y;
    cin>>x;
    y=abs(x+2);
    cout<<x*x-y+5<<endl;
    return 0;
}
绝对值函数
技术分享
#include<iostream>
using namespace std;
int main()
{
    int t,s;
    cin>>t;
    s=t*10+2*t*t;
    cout<<s<<endl;
    return 0;
}
求滑动距离
技术分享
#include<iostream>
using namespace std;
int main()
{
    double r,h,a;
    cin>>r>>h;
    a=r*r*3.14*h;
    cout<<a<<endl;
    return 0;
}
求圆柱体体积
技术分享
#include<iostream>
using namespace std;
int main()
{
    double L,R,V,Q,C;
    cin>>L>>R>>V;
    Q=L*R;
    C=L+R+V;
    cout<<"Q:"<<Q<<endl;
    cout<<"C:"<<C<<endl;
    return 0;
}
简单的计算
技术分享
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
    double a,b,c,d;
    cin>>a>>b;
    c=a*a+b*b;
    d=sqrt(c);
    cout<<a*a+b*b+d*d<<endl;
    return 0;
}
直角三角求解

 

首师大附中科创教育平台 我的刷题记录(3)

原文:http://www.cnblogs.com/mayitao/p/5837571.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!