Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
t>0
#include <iostream> using namespace std; //Compiler version g++ 6.3.0 int main() { int x,y,a,b,t; cin>>t; while(t--) { cin>>a>>b>>x>>y; if(a<x && b==y) { cout<<"right"; } else if(a>x && b==y) { cout<<"left"; } else if(a==x && b<y) { cout<<"up"; } else if(a==x && b>y) { cout<<"down"; } else cout<<"sad"; if(t>0) { cout<<endl; } } cout<<"hi"; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
property get set
Height of a binary tree
Merge problem
Synchro#1
Pairs having sum equal to target
UnghiLansator
simple serialization
HotelVec
FindMissingLagrange
Defining Class Members
Please log in to post a comment.