fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string a;
  6. cin >> a;
  7. if (a == "nozyce") cout << "kamien";
  8. else if (a == "kamien") cout << "papier";
  9. else if (a == "papier") cout << "nozyce";
  10. else cout << "przegrales";
  11. return 0; }
Success #stdin #stdout 0.01s 5288KB
stdin
kamien
stdout
papier