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.
quickselect
Sort an array of 0s, 1s and 2s
cpp base
stlsizeof.cc
Fractional Knapsack
StackPat
IAR compiler bug test code
Matrix spiral print
Gauss 4x4 reducido
Matrix rotation
Please log in to post a comment.