Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,x1,y1,x2,y2,x,y;
- cin>>a;
- for(int i=0;i<a;i++)
- {
- cin>>x1>>y1>>x2>>y2>>x>>y;
- if((y-y1)*(x2-x1)-(y2-y1)*(x-x1)==0)cout<<"TAK"<<endl;
- else cout<<"NIE"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement