fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long a, b, c, del;
  6. cin>>a>>b>>c;
  7. del=b*b-(4*a*c);
  8. if (del<0)
  9. cout<<"NOSOL";
  10. else if (del==0)
  11. cout<<"TWO";
  12. else
  13. cout<<"ONE";
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5312KB
stdin
1
1
1
stdout
NOSOL