-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFLOW014.cpp
More file actions
51 lines (47 loc) · 859 Bytes
/
FLOW014.cpp
File metadata and controls
51 lines (47 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include<iostream>
using namespace std;
int h,s;
double c;
bool condition1()
{
if(h>50)
return true;
else
return false;
}
bool condition2()
{
if(c<0.7)
return true;
else
return false;
}
bool condition3()
{
if(s>5600)
return true;
else
return false;
}
int main()
{
int t;
cin>>t;
while(t--)
{
cin>>h>>c>>s;
if(condition1()&&condition2()&&condition3())
cout<<"10"<<endl;
else if(condition1()&&condition2())
cout<<"9"<<endl;
else if(condition3()&&condition2())
cout<<"8"<<endl;
else if(condition3()&&condition1())
cout<<"7"<<endl;
else if(condition1()||condition2()||condition3())
cout<<"6"<<endl;
else
cout<<"5"<<endl;
}
return 0;
}