11 条题解
-
9
cxccxc LV 9 @ 2018-11-07 10:58:50
仅此一行
print(max(350,25*(int(input()))-100)) -
2@ 2019-03-04 18:11:36
北京市第三区交通委提醒您:
代码千万条
细节第一条
冒号不缩进
测评两行泪 -
1@ 2021-02-19 15:01:00
#include <iostream> using namespace std; int main() { int s;cin>>s; int fy=350; if(s>18) fy+=25*(s-18); cout<<fy; return 0; } -
1@ 2019-05-14 21:38:37
a=int(input())
if a<=18:
b=350
else:
b=a*25-100
print(b) -
1@ 2019-03-11 15:26:42
#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;
} -
1@ 2019-03-04 15:53:22
#python3
a=int(input())
if a<=18:
b=350
else:
b=a*25-100
print(b) -
0@ 2021-10-20 10:42:47
python / pytnon 3
n=int(input(""))
if n<=18:
print("350")
else:
a=(n-18)*25+350
print(a) -
0@ 2020-03-17 22:25:07
import math
s=int(input())
if s<=18:
p=350
else:
p=350+(s-18)*25
print(p) -
0@ 2019-10-24 10:40:36
import math s=int(input()) e=s-18 if s<=18: print("350") else: m=350+(e*25) print(m) -
0@ 2018-11-26 15:33:50
s=int(input())
m=s-18
if m<=0:
p=350
else:
p=350+m*25
print(p) -
0@ 2018-11-04 22:36:57
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%
- 上传者