简单阶梯函数
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
250M
Problem types
Allowed languages
C, C++, Java, Python
Description
有一个函数y满足:x ( x < 1 );2x – 1( 1≤ x < 10 );3x – 11 ( x ≥ 10 )。
写一个程序,输入x,输出y。
Input
输入多个数据
Output
输出数据占4个字符宽。 5个数据一组占一行。
Sample
Input
1 5 10 15 20 21
Output
1 9 19 34 49
52
Comments