SHARE
TWEET

Untitled

a guest Feb 27th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int solve(int A, int B, int C, int D) {
  2.     for (int x = 0; x < 255; ++x) {
  3.         if (A * x * x * x + B * x * x + C * x + D == 0) {
  4.             return x;
  5.         }
  6.     }
  7.  
  8.     return -1;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top