Skip to content

Commit

Permalink
Add 28453.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyabye committed Jan 23, 2024
1 parent a9bcc12 commit 6925c9e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 28xxx/28453.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <iostream>
using namespace std;

void solve(void) {
int n; cin >> n;
for (int i=0; i<n; i++) {
int m; cin >> m;
if (m < 250) cout << "4 ";
else if (m < 275) cout << "3 ";
else if (m < 300) cout << "2 ";
else cout << "1 ";
}
}

int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr); cout.tie(nullptr);

solve();
return 0;
}

0 comments on commit 6925c9e

Please sign in to comment.