Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Point on a ray--2133
#include <iostream> using namespace std; int main() { int x0, y0, x1, y1, x2, y2; scanf("%d %d %d %d %d %d", &x0, &y0, &x1, &y1, &x2, &y2); if ((x0 - x1) * (y2 - y1) == (x2 - x1) * (y0 - y1) && (x0 - x1) * (x2 - x1) >= 0 && (y0 - y1) * (y2 - y1) >= 0) printf("YES\n"); else printf("NO\n"); return 0; }
run
|
edit
|
history
|
help
-1
References Pt 1 C++
function pointer overload
sd5
PalindromePair-s1
uuuu
temporaries and move constructor
Test 8(2010)
floyd alfa 1
ttt
https://rextester.com/TXKE53925