PAT Basic Level 1066 图像过滤 (15 分)
程序员文章站
2022-07-15 12:41:06
...
题目链接:
https://pintia.cn/problem-sets/994805260223102976/problems/994805266514558976
AC代码:
#include <bits/stdc++.h>
using namespace std;
int main(){
int M,N,A,B,change;
scanf("%d%d%d%d%d",&M,&N,&A,&B,&change);
while(M--){
for(int i=0;i<N;i++){
int tmp;
scanf("%d",&tmp);
if(tmp>=A&&tmp<=B)
{
printf("%03d",change);
}
else{
printf("%03d",tmp);
}
if(i!=N-1){
printf(" ");
}
}
printf("\n");
}
}
推荐阅读
-
PAT1066 图像过滤 (15 分)(C语言)
-
PAT Basic Level 1066 图像过滤 (15 分)
-
PAT (Basic Level) Practice (中文)1066 图像过滤 (15 分)(C实现)
-
1066 图像过滤 (15 分)—PAT (Basic Level) Practice (中文)
-
PAT (Basic Level) Practice (中文) 1066 图像过滤 (15分)
-
PAT (Basic Level) Practice (中文)1066 图像过滤 (15 分)
-
PAT (Basic Level) Practice (中文)1066 图像过滤 (15 分)
-
PAT (Basic Level) Practice (中文)1066 图像过滤 C语言版 (15分)
-
PAT (Basic Level) Practice 1066 图像过滤
-
PAT (Basic Level) Practice 1066 图像过滤