mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 20:48:48 +00:00
659. 区间
https://www.acwing.com/problem/content/submission/code_detail/8063833/
This commit is contained in:
parent
54841219e5
commit
da8dbeac35
21
AcWing/659/659.cpp
Normal file
21
AcWing/659/659.cpp
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
double x;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
cin >> x;
|
||||||
|
if (0 <= x && x <= 25) {
|
||||||
|
cout << "Intervalo [0,25]" << endl;
|
||||||
|
} else if (25 < x && x <= 50) {
|
||||||
|
cout << "Intervalo (25,50]" << endl;
|
||||||
|
} else if (50 < x && x <= 75) {
|
||||||
|
cout << "Intervalo (50,75]" << endl;
|
||||||
|
} else if (75 < x && x <= 100) {
|
||||||
|
cout << "Intervalo (75,100]" << endl;
|
||||||
|
} else {
|
||||||
|
cout << "Fora de intervalo" << endl;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user