3 条题解

  • 1
    @ 2026-7-8 16:01:46
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int a;
    	cin >> a;
    	for (int i = 1; i <= a; i++) {
    		for (int k = 1; k <= a; k++) {
    			cout << "*";
    		}
    		cout << endl;
    	}
    	return 0;
    }
    
    
    
    • 0
      @ 2026-7-7 9:56:47

      #include <bits/stdc++.h> using namespace std;

      int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { cout << "*"; } cout << endl; }

      return 0;
      

      }

      • 0
        @ 2026-5-31 13:12:23

        #include <bits/stdc++.h> using namespace std;

        int main() { int a; cin >> a; for (int i = 1; i <= a; i++) { for (int j = 1; j <= a; j++) { cout << "*"; } cout << endl; } return 0; }

        • 1

        信息

        ID
        30071
        时间
        1000ms
        内存
        256MiB
        难度
        9
        标签
        递交数
        10
        已通过
        8
        上传者