| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 28646 | diandian | 年龄与疾病 | C++ | Wrong Answer | 0 MS | 248 KB | 529 | 2023-10-17 21:31:35 |
#include <bits/stdc++.h> using namespace std; int main() { double n, a, b, c, d; cin >> n; for(int i = 1; i <= n; ++ i) { int a; cin >> a; if (a < 19) a ++; else if (a < 36) b ++; else if (a < 61) c ++; else d ++; } cout << fixed << setprecision(2) << a << "%\n"; cout << fixed << setprecision(2) << b << "%\n"; cout << fixed << setprecision(2) << c << "%\n"; cout << fixed << setprecision(2) << d << "%\n"; return 0; }