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 <= n; j++){
  9. if(i == 0 % 2){
  10. cin >> n;
  11. cout << "*" << endl;
  12. }
  13. }
  14. for (int k = 0; k <= n; k++){
  15. for(int t = k; k <= n; k++){
  16. if(k == 0 % 2){
  17. cin >> k;
  18. cout << "e" << endl;
  19. }
  20. }
  21.  
  22. for (int q = 0; q <= n; q++){
  23. if(q == 0 % 2){
  24. cin >> q;
  25. cout << "*" << endl;
  26. }
  27. }
  28. }
  29. }
  30.  
  31. return 0;
  32. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
*
e
*