1 条题解

  • 1
    @ 2024-12-18 12:52:45
    #include <bits/stdc++.h>
    #define LL long long
    using namespace std;
    const int INF = 0x3f3f3f3f;
    const int N = 100 + 10;
    int n , m;
    int a [N] [N];
    int main()
    {
    	    cin >> n;
    	    for (int i = 1; i <= n; i++)
    	    {
    	        for (int j = 1; j <= n; j++)
    	        {
    	    	    cin >> a [i] [j];
    		    }	
    		}
    		cin >> m;
    		for (int i = 1; i <= n; i++)
    	    {
    	        for (int j = 1; j <= n; j++)
    	        {
    	    	    a [i] [j] /= m;
    	    	    cout << a [i] [j] << " ";
    		    }
    			cout << "\n";	
    		}
    		return 0;
    }
    
    • 1

    信息

    ID
    3101
    时间
    1000ms
    内存
    256MiB
    难度
    2
    标签
    递交数
    13
    已通过
    10
    上传者