东方博宜OJ分支答案

额...

学生党做,不喜勿喷!!

1303

#include <bits/stdc++.h>

using namespace std;

int main(){

         int n;

        cin>>n;

         float h;

        if(n>=10)

                 h=n*2.0;

        else

                h=n*2.2;

         cout<<fixed<<setprecision(1)<<h;

         return 0; }

1033

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;
    cin>>n;
    if(n%2==0)
        cout<<"y e s";
    else
        cout<<"n o";
    return 0;
}

1302

#include <bits/stdc++.h>

using namespace std;

int main(){
    int t;
    cin>>t;
    if(t<=30&&t>=20)
        cout<<"OK";
    else
        cout<<"NO";
    return 0;
}

1632

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;
    cin>>n;
    if(n<=30)
        cout<<1;
    else
        cout<<ceil(n/30.0);
    return 0;
}

1043

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;
    cin>>n;
    if(n<=10)
        cout<<fixed<<setprecision(2)<<2.5;
    else
        cout<<fixed<<setprecision(2)<<2.5+(n-10)*1.5;
    return 0;
}

1037

#include <bits/stdc++.h>

using namespace std;

int main(){
    double n;
    cin>>n;
    if(n<1.3)
        cout<<60;
    else
        cout<<120;
    return 0;
}

没时间了

下次再补吧!!

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值