top1编程
← 返回题目
题解

【入门】数字矩形(1)

1 条题解

  • 0
    @ 2026-7-29 0:15:11
    #include <bits/stdc++.h>
    using namespace std;
    int main(){
    	int n,i;
    	cin>>n;
    	for (int i=1;i<=n;i++){
    		for (int j=1;j<=n;j++){
    			//cin>>i;多余的输入,会需要时间等待
    			cout<<i;
    		}
    		cout<<endl;
    	}	
    	return 0;
    }
    
    • 1