P2433 【深基1-2】小学数学 N 合一

想法

呵呵呵呵呵

小学题????哈哈哈哈哈哈哈哈哈哈哈 我从10点多开始做的 呵呵呵 13点23了!!!

首先来说啊 确实简单 但是折磨

#include<bits/stdc++.h>
using namespace std;
//洛谷不是。。。。你。。。 wa
int main()
{
	int op;
	double PI=3.14159;
	scanf("%d",&op);
	if(op==1)
		printf("I love Luogu!");
	else if(op==2)
		printf("6 4");
	else if(op==3)
		printf("3\n12\n2");
	else if(op==4)
	{
		double a = 500.0/3.0;
		printf("%.3lf",a);
	}
	else if(op==5)
		printf("15");
	else if(op==6)
		printf("%.4lf",sqrt(117.0));
	else if(op==7)
		printf("110\n90\n0");
	else if(op==8)
	{
        int r=5;
        double pi=3.141593;
        cout<<2*pi*r<<endl;
        cout<<r*r*pi<<endl;
        cout<<4.0/3*pi*r*r*r<<endl;
	}
	else if(op==9)
		printf("22");
	else if(op==10)
		printf("9");
	else if(op==11)
	{
		double ans=100.0/3.0;
		printf("%.4lf",ans);
	}
	else if(op==12)
	{
		int a = 'M'-'A'+1;
		char c = 'A'+17;
		printf("%d\n%c",a,c);
	}
	else if(op==13)
	{
		double v = 4.0*PI*(4.0*4.0*4.0+10.0*10.0*10.0)/3.0;
		v = pow(v,1.0/3.0);
		printf("%d",(int)v);
	}
	else if(op == 14)
		printf("50");

	return 0;
}

直接复制ba 可安全实用

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值