Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 74fb8f1

Browse files
new problem
1 parent 90d8f0d commit 74fb8f1

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

‎Online Judges/URI/2386.cpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#include <iostream>
2+
#include <vector>
3+
4+
using namespace std;
5+
6+
int main() {
7+
8+
int t_area, n_stars, cont = 0;
9+
10+
cin >> t_area >> n_stars;
11+
12+
vector<int>f(n_stars, 0);
13+
14+
for(int i = 0; i < n_stars; i++) {
15+
cin >> f[i];
16+
}
17+
18+
for (int i = 0; i < n_stars; i++) {
19+
if (f[i] * t_area >= 40000000) {
20+
cont++;
21+
}
22+
}
23+
24+
25+
cout << cont << endl;
26+
return 0;
27+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /