信息学奥赛一本通2062-2073

2062

#include"iostream"
using namespace std;
int main()
{
	int x,mny;
	cin>>x;
	mny=10*x;
	cout<<x<<" "<<mny;
	return 0;
}

2063

#include<iostream>
using namespace std;
int main()
{
	int a,b,s;
	a=15*20;
	b=20*10;
	s=(a-b)/(20-10);
	printf("%d\n",s);
	return 0;
}

2064

#include"iostream"
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b;
	cout<<b<<" "<<a;
	return 0;	
}

2065

#include"cstdio"
#include"iostream"
using namespace std;
int main ()
{
	int a,b,c,sum;
	cin>>a>>b>>c;
	sum=a+b+c;
	cout<<sum;
	return 0;
}

2066

#include"cstdio"
#include"iostream"
using namespace std;
int main ()
{
	double n,m,l;
	cin>>n>>m;
	l=n-0.8*m;
	printf("%.2lf",l);
	return 0;
}

2067

#include"cstdio"
#include"iostream"
using namespace std;
const double PI=3.1415926;
int main()
{
	double r,d,c,s;
    scanf("%lf",&r);
    d=r*2;
    c=2*PI*r;
    s=PI*r*r;
    printf("%0.4lf %0.4lf %0.4lf",d,c,s);
    return 0; 
}

2068

#include"cstdio"
#include"iostream"
using namespace std;
int main()
{
	int x,y,s,t;
	cin>>x>>y;
	t=y/2-x;
	s=x-t;
	cout<<s<<" "<<t;
	return 0;
}

2069

#include"iostream"
#include"cstdio"
using namespace std;
int main()
{
	int a,b,c,d,e;
	scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
	a=a/3;b=b+a;e=e+a;
	b=b/3;c=c+b;a=a+b;
	c=c/3;d=d+c;b=b+c;
	d=d/3;e=e+d;c=c+d;
	e=e/3;a=a+e;d=d+e;
	printf("%5d%5d%5d%5d%5d",a,b,c,d,e);
	return 0;
}

2070

#include"iostream"
#include"cstdio"
using namespace std;
int main()
{
    int n,a,b,c;
    scanf("%d",&n);
    a=n/100;
    b=n/10%10;
    c=n%10;
    printf("%d\n",c*100+b*10+a);
    return 0;
}

2071

#include"iostream"
#include"cstdio"
using namespace std;
int main()
{
    int x,y;
    scanf("%d%d",&x,&y);
    printf("%.4lf\n",(87*x+85*y)/(double)(x+y));
    return 0;
}

2072

#include<cstdio>
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	double s,h,l;
	s=6*9.6;
	h=s-5*9.4;
	l=s-5*9.8;
	printf("%5.2f", (s-h-l)/4);
	return 0; 
}

2073

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{ 
	double a,b,c,p,s;
	cin>>a>>b>>c;
	p=(a+b+c)/2;
	s=sqrt(p*(p-a)*(p-b)*(p-c));
	printf("%.3lf\n",s);
	return 0;
}

关注我,天天赞天天看!!!

在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

༺Blog༒Hacker༻

您的鼓励将是我更新最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值