UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#170529#1166. 小明的名次luojianwei22161000ms1196kbC++276b2023-05-23 22:31:502023-05-23 22:31:51

answer

#include <bits/stdc++.h>
using namespace std;
int score[2147];
int main() {
	int n, Score, onef = 1;
	cin >> n;
	for(int i = 0; i < n; i++) cin >> score[i];
	cin >> Score;
	for(int i = 0; i < n; i++) {
		if(score[i] > Score) onef++;
	}
	cout << onef;
	return 0;
}

Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 20
Accepted
time: 0ms
memory: 1196kb

input:

11
76 83 75 89 51 99 93 51 65 64 90
90

output:

3

result:

ok single line: '3'

Test #2:

score: 20
Accepted
time: 0ms
memory: 1196kb

input:

12
78 71 93 75 63 90 55 66 89 69 55 66
66

output:

8

result:

ok single line: '8'

Test #3:

score: 20
Accepted
time: 0ms
memory: 1196kb

input:

44
54 75 68 88 58 74 94 76 90 92 56 78 98 84 70 99 99 87 66 90 81 94 60 54 75 59 78 79 77 70 55 72 8...

output:

25

result:

ok single line: '25'

Test #4:

score: 20
Accepted
time: 0ms
memory: 1196kb

input:

33
75 80 72 85 83 57 92 80 98 67 83 70 70 90 93 73 75 88 62 78 88 73 67 89 53 50 82 69 71 84 86 92 9...

output:

8

result:

ok single line: '8'

Test #5:

score: 20
Accepted
time: 0ms
memory: 1196kb

input:

10
95 74 66 65 56 81 74 88 66 70
74

output:

4

result:

ok single line: '4'