4 条题解

  • 1
    @ 2024-5-18 10:27:33
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int m,n,k,arr[30][30];
    	cin>>m>>n>>k; 
    	for(int i=0;i<m;i++){
    		for(int j=0;j<n;j++){
    			cin>>arr[i][j];
    		}
    	}
    	for(int i=0;i<m;i++){
    		for(int j=0;j<n;j++){
    			if(arr[i][j]<k)
    				cout<<"0 ";
    			else
    				cout<<"255 ";
    		}
    		cout<<endl;
    	}
    	return 0;
    }
    
    • 1
      @ 2023-4-13 10:25:05
      • 0
        @ 2025-8-22 15:36:52

        • 0
          @ 2023-6-18 10:20:29

          image

          • 1

          蓝桥杯等级考试11级_图像的二值化处理

          信息

          ID
          572
          时间
          1000ms
          内存
          256MiB
          难度
          3
          标签
          递交数
          39
          已通过
          24
          上传者