fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b >> c ;
  7. if (a == b && b == c && a == c){
  8. cout << " RWB ";
  9. }
  10. else{
  11. if (a != b && b != c && c != a){
  12. cout << " RZB ";
  13. }
  14. else{
  15. cout << " RWR ";
  16. }
  17. }
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5280KB
stdin
2 2 2




stdout
 RWB