-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecnuoj3351.cpp
67 lines (64 loc) · 1.2 KB
/
ecnuoj3351.cpp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include<iostream>
using namespace std;
void printcoffee(int a,int b)
{
int c=a+b;
if(a==0)
{
cout<<"LBB made no coffee today."<<endl;
}
else
{
if(a==1)
{
cout<<"LBB made a cup of coffee today."<<endl;
}
else
{
cout<<"LBB made "<<a<<" cups of coffee today."<<endl;
}
}
if(b==0)
{
cout<<"JDG made no coffee today."<<endl;
}
else
{
if(b==1)
{
cout<<"JDG made a cup of coffee today."<<endl;
}
else
{
cout<<"JDG made "<<b<<" cups of coffee today."<<endl;
}
}
if(c==0)
{
cout<<"BOSS had no coffee today."<<endl;
}
else
{
if(c==1)
{
cout<<"BOSS had a cup of coffee today."<<endl;
}
else
{
cout<<"BOSS had "<<c<<" cups of coffee today."<<endl;
}
}
}
int main()
{
int t=0;
scanf("%d",&t);
while(t>0)
{
int a=0,b=0;
scanf("%d %d",&a,&b);
printcoffee(a,b);
t--;
}
return 0;
}