|
|
|
|
背景 Background |
|
|
为了for beginngers,特设此题,^_^
|
|
|
|
|
|
|
|
描述 Description |
|
|
特殊序列(special.pas/.c/.cpp)
某一个数的质因数如果只有2、3、5中的一种或几种,那么它就是一个特殊的数,这样的数从小到大是这样的一些数:2,3,4,5,6,8,9,10,12,15,……,求这个序列第n(n<=1000)大的数的数值。
输入格式(special.in):
一行一个整数,表示所求的第n大的数。
输出格式(special.out):
一行一个整数,表示满足要求的第n大的数值。
样例输入:
10
样例输出:
15
|
|
|
|
|
|
|
|
输入格式 Input Format |
|
|
一行一个整数,表示所求的第n大的数。
|
|
|
|
|
|
|
|
输出格式 Output Format |
|
|
一行一个整数,表示满足要求的第n大的数值。 |
|
|
|
|
|
|
|
时间限制 Time Limitation |
|
|
各个测试点1s
|
|
|
|
|
|
|
|
注释 Hint |
|
|
Free Pascal Code:
-------------------
program Plus;
var a,b:longint;
begin
readln(a,b);
writeln(a+b);
end.
C++ Code:
-------------------
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
return 0;
}
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1125 |
|
数论 / 数值 |
通过 |
3人 |
提交 |
14次 |
通过率 |
21% |
难度 |
3 |
|
|
|
|
|
|