18 条题解
-
2郑钧文 LV 7 @ 2018-12-24 15:26:18
n=int(input())
if n<=10:
m=5*n
if n>10:
m=(50+4*(n-10))
print(m) -
22018-12-13 11:11:53@
求一行算法
x=int(input())
print(5*x-(max(0,x-10))) -
12024-06-17 21:20:36@
python:
n=int(input())
n<1000000
if n<=10:
m=int(5*n)
else:
n>10
m=int(50+4*(n-10))
print(m) -
12019-03-06 17:26:39@
n=int(input())
if n<=10:
print(n*5)
else:
print(50+(n-10)*4) -
12019-03-04 16:24:38@
a=int(input())
b=5*a
c=a*4+10
if a<=10:
print(b)
else:
print(c) -
02020-03-17 22:27:03@
import math
n=int(input())
if n<=10:
print(n*5)
else:
print(50+(n-10)*4) -
02019-03-22 13:03:04@
x=int(input())
if(x<=10):
m=x*5
else:
m=50+(x-10)*4
print(m) -
02019-03-22 13:02:39@
x=int(input())
if(x<=10):
m=x*5
else:
m=50+(x-10)*4
print(m) -
02019-03-11 15:28:18@
#include <iostream>
#include <math.h>
#include <iomanip>using namespace std;
int main()
{
int n, price;
cin >> n;
if(n <= 10)
{
price = n * 5;
}
else
{
price = 50 + (n - 10) * 4;
}
cout << price;
return 0;
} -
02018-12-13 12:48:09@
n=int(input())
if n<=10:
m=5*n
if n>10:
m=(50+4*(n-10))
print(m) -
02017-10-16 15:44:42@
x=int(input())
if(x<=10):
m=x*5
else:
m=50+(x-10)*4
print(m) -
-22018-11-26 15:49:44@
n=int(input())
if n<10:
p=n*5
else:
n>=10
p=50+(n-10)*4
print(p) -
-22017-10-23 13:16:58@
n=int(input())
if(n<=10):
x=n*5
else:
x=50+(n-10)*4
print(x) -
-22017-10-09 16:47:15@
n=int(input(),10)
a=5*n
if n>10:
a=(4*n+10)
print(a) -
-32018-11-04 22:21:04@
import math
n=int(input())
if n<=10:
p=5*n
elif n>10:
s=n-10
p=50+4*sprint(p)
-
-32017-11-07 15:57:13@
n=int(input())
if(n>10):
print(50+4*(n-10))
else:
print(5*n) -
-52017-09-22 09:14:40@
import math
x=int(input())
if():
print()
elif():
print() -
-112017-09-18 11:14:20@
-*- coding: utf-8 -*-
a=int(input())
if(a<=10):
print(a*5)
else:
print
- 1
信息
- 难度
- 1
- 分类
- (无)
- 标签
- (无)
- 递交数
- 6562
- 已通过
- 1724
- 通过率
- 26%
- 被复制
- 2
- 上传者