|
|
|
|
背景 Background |
|
|
为了for beginngers,特设此题,^_^
|
|
|
|
|
|
|
|
描述 Description |
|
|
小明的排名。数学竞赛试卷批改好了,但是还没排名,老师的成绩单上只有每个学生的分数,小明知道了自己的分数,但他想知道自己的排名,你能帮他算算他排在第几名吗? |
|
|
|
|
|
|
|
输入格式 Input Format |
|
|
第一行为两个数n和x,n表示全体考试的学生人数,x表示小明的分数。n和 x之间有个空格。
第2行为n个整数, 相邻两个整数之间均有一个空格。
|
|
|
|
|
|
|
|
输出格式 Output Format |
|
|
一个整数,表示小明的排名。 |
|
|
|
|
|
|
|
时间限制 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 |
|
题号 |
P1051 |
|
其它 |
通过 |
74人 |
提交 |
333次 |
通过率 |
22% |
难度 |
0 |
|
|
|
|
|
|