include fstream using namespace std ifstream cin coffee in ofstream co

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#include <fstream>
using namespace std;
ifstream cin("coffee.in");
ofstream cout("coffee.out");
int main(){
int x,y,x1,y1;
cin>>x>>y>>x1>>y1;
if(max(x1,x)-min(x1,x)==max(y1,y)-min(y1,y))cout<<"Good!";
else cout<<"You drink too much!";
return 0;
}