Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a,x1,y1,x2,y2,x,y;
  8. cin>>a;
  9. for(int i=0;i<a;i++)
  10. {
  11.  
  12.  
  13. cin>>x1>>y1>>x2>>y2>>x>>y;
  14. if((y-y1)*(x2-x1)-(y2-y1)*(x-x1)==0)cout<<"TAK"<<endl;
  15. else cout<<"NIE"<<endl;
  16. }
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement