#39039: C++


Ghost543 (The Ghost)

學校 : 不指定學校
編號 : 259947
來源 : [218.164.149.227]
最後登入時間 :
2024-02-11 22:26:11
a053. Sagit's 計分程式 -- Sagit's 教學題 | From: [111.255.228.1] | 發表日期 : 2024-01-09 00:22

#include <iostream>
using namespace std;

int main() {
    int a=0,b=0;
    cin>>a;
    b= a>=10? a>=20? a>=40? 100 :60+a :40+2*a :6*a;
    cout<<b;
}

 

 
ZeroJudge Forum