SHARE
TWEET

Untitled

a guest Jan 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5.     int main() {
  6.         int R, G, B;
  7.         cin >> R >> G >> B;
  8.  
  9.         if(R <= 255 && G <= 255 && B <= 255 && R * G * B >= 0){
  10.             if((abs(R - G)<10 && abs(B - G)<10 && abs(B - R)<10)){
  11.                 cout <<"GRI";
  12.             return 0;
  13.             }
  14.             else
  15.                 cout << "CULOARE";
  16.                 }
  17.                 else
  18.                     cout<<"NU E CULOARE";
  19.     return 0;
  20.     }
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