11 条题解
-
9
cxccxc LV 9 @ 6 年前
仅此一行
-
26 年前@
北京市第三区交通委提醒您:
代码千万条
细节第一条
冒号不缩进
测评两行泪 -
14 年前@
-
16 年前@
a=int(input())
if a<=18:
b=350
else:
b=a*25-100
print(b) -
16 年前@
#include <iostream>
#include <math.h>
#include <iomanip>using namespace std;
int main()
{
int kilometre;
int price = 350;
cin >> kilometre;
if(kilometre > 18)
{
price += (kilometre - 18) * 25;
}
cout << price;
return 0;
} -
16 年前@
#python3
a=int(input())
if a<=18:
b=350
else:
b=a*25-100
print(b) -
03 年前@
python / pytnon 3
n=int(input(""))
if n<=18:
print("350")
else:
a=(n-18)*25+350
print(a) -
05 年前@
import math
s=int(input())
if s<=18:
p=350
else:
p=350+(s-18)*25
print(p) -
05 年前@
-
06 年前@
s=int(input())
m=s-18
if m<=0:
p=350
else:
p=350+m*25
print(p) -
06 年前@
import math
s=int(input())
if s<=18:
p=350
else:
m=s-18
n=m*25
p=350+n
print(p)
- 1
信息
- 难度
- 6
- 分类
- (无)
- 标签
- (无)
- 递交数
- 5432
- 已通过
- 1273
- 通过率
- 23%
- 上传者