fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. for(int i = 0; i < n; i++){
  8. for(int j = i; j < i; j++){
  9. if(i == 0 % 2){
  10. cout << i << "*" << endl;
  11. cin >> i;
  12. }
  13. cout << j << "*" << endl;
  14. cin >> j;
  15. }
  16. for (int k = 0; k <= n; k++){
  17. for(int t = k; t <= k; t++){
  18. if(k == 0 % 2){
  19. cin >> k;
  20. cout << "e" << endl;
  21. }
  22. }
  23.  
  24. for (int q = 0; q <= n; q++){
  25. if(q == 0 % 2){
  26. cin >> q;
  27. cout << "*" << endl;
  28. }
  29. }
  30. }
  31. }
  32.  
  33. return 0;
  34. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty