fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int A, B;
  7.  
  8. cin >> A, B;
  9.  
  10. if (A == 100 && B == 0)
  11. {
  12. cout << "Gold" << endl;
  13. }
  14. else if (A == 0 && B >= 0)
  15. {
  16. cout << "Silver" << endl;
  17. }
  18. else
  19. {
  20. cout << "Alloy" << endl;
  21. }
  22. return 0;
  23. }
Success #stdin #stdout 0.01s 5464KB
stdin
50 50
stdout
Alloy