fork(1) download
  1. // iostream is too mainstream
  2. #include <cstdio>
  3. // bitch please
  4. #include <iostream>
  5. #include <vector>
  6. #include <set>
  7. #include <map>
  8. #include <string>
  9. #include <queue>
  10. #include <stack>
  11. #include <algorithm>
  12. #define dibs reserve
  13. #define OVER9000 1234567890
  14. #define tisic 47
  15. #define soclose 10e-7
  16. #define ALL_THE(CAKE,LIE) for(auto LIE =CAKE.begin(); LIE != CAKE.end(); LIE++)
  17. #define chocolate win
  18. // mylittlepony
  19. using namespace std;
  20.  
  21. int main() {
  22. int T;
  23. cin >> T;
  24. for(int t =0; t < T; t++) {
  25. int N,a,s =0;
  26. cin >> N;
  27. for(int i =0; i < N; i++) {
  28. cin >> a;
  29. s +=a;}
  30. if(s%N != 0) cout << "Sohrab\n";
  31. else cout << "Sepehr\n";}
  32. return 0;}
  33.  
  34. // look at my code
  35. // my code is amazing
Success #stdin #stdout 0s 3300KB
stdin
2
2 1 2
3 2 1 3
stdout
Sohrab
Sepehr