diff --git a/Tricky Problems/han-solo-and-lazergun.cpp b/Tricky Problems/han-solo-and-lazergun.cpp new file mode 100755 index 000000000..100a9b31b --- /dev/null +++ b/Tricky Problems/han-solo-and-lazergun.cpp @@ -0,0 +1,24 @@ +#include +using namespace std; + +int main() +{ + int n,x0,y0; + cin>>n>>x0>>y0; + setSet; + + while(n--) + { + double x, y, slope; + cin>>x>>y; + if(x==x0) + { + slope=pow(10,8); + } + else slope=(y-y0)/(x-x0);Set.insert(slope); + } + cout<