X and paintings Gym-101028D
来源:互联网 发布:算法有哪些 编辑:程序博客网 时间:2024/04/28 01:02
X and paintings Gym-101028D
标签:水题
题目链接
/* 题意:二维数组简单应用,初始化后,按顺序处理*/#include <stdio.h>#include <string.h>char plane[105][105];int main(){ int T; scanf("%d", &T); while(T--) { int R, C, I; int a, b, c, d; char color; scanf("%d %d %d", &R, &C, &I); for(int i = 1; i <=R; i++) //初始化 for(int j = 1; j <= C; j++) plane[i][j] = '.'; for(int i = 0; i < I; i++) { scanf("%d %d %d %d %c", &a, &b, &c, &d, &color); for(int m = a; m <= c; m++) for(int n = b; n <= d; n++) plane[m][n] = color; } for(int i = 1; i <=R; i++) { for(int j = 1; j <= C; j++) printf("%c", plane[i][j]); printf("\n"); } } return 0;}
阅读全文
0 0
- X and paintings Gym-101028D
- Gym 101028J 100541D
- CodeForces Gym 100735D
- 100642D GYM
- Gym 101617D dp
- 13周练 D - Beautiful Paintings 【升数列】
- Gym 100513D - Data Center
- Gym 100796D Journey(BFS)
- Gym 100231D Balloons 贪心
- Gym 100531 D Digits 【暴力】
- Gym 101102D 单调栈
- Gym-100502D Dice Game
- codeforces GYM 101431D(构造)
- Codeforces Gym 101485D Debugging
- Gym 101617D Jumping Haybales
- Gym 101617D 线段树
- Codeforces Gym 100623D Problem D. Deposits
- Codeforces Eyad and Math Gym
- Spring面向切面编程一
- 关于传输格式的验证
- Ijkplayer简单使用
- 跟我一起学算法系列5---从尾到头打印链表
- oracle表空间查询操作
- X and paintings Gym-101028D
- matlab 的plot 用法
- 间接寻址
- React.createClass和extends Component的区别
- c语言编写猜数字游戏
- 制作HTML5游戏2
- 简单驱动程序框架
- 计蒜客 等和的分隔子集 DP
- Hadoop入门概念