fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int a,t;
  4.  
  5. int main() {
  6. std::cin >> t;
  7. while(t--){
  8.  
  9.  
  10. std::cin >> a;
  11. if(a<=3){
  12. std::cout << "BRONZE" << std::endl;
  13. }
  14. else if(a>3 and a<=6){
  15. std::cout << "SILVER" << std::endl;
  16. }
  17. else{
  18. std::cout << "GOLD" << std::endl;
  19. }
  20. }
  21. // your code goes here
  22.  
  23. }
  24.  
Success #stdin #stdout 0s 5320KB
stdin
4
1
3
5
7
stdout
BRONZE
BRONZE
SILVER
GOLD