zoj 2857 Image Transformation
来源:互联网 发布:c语言函数大全pdf下载 编辑:程序博客网 时间:2024/05/16 18:55
#include "iostream"#include "vector"using namespace std;int main(){int N, M, casecount = 0;while (cin >> N >> M && N != 0 && M != 0){vector<int>r;vector<int>g;vector<int>b;int red, green, blue, ans;casecount++;for (int i = 0; i < N * M; i++){cin >> red;r.push_back(red);}for (int i = 0; i < N * M; i++){cin >> green;g.push_back(green);}for (int i = 0; i < N * M; i++){cin >> blue;b.push_back(blue);}cout << "Case " << casecount << ":" << endl;for (int i = 0; i < N * M; i++){ans = (r[i] + g[i] + b[i]) / 3;if ( (i + 1) % M)cout << ans << ",";elsecout << ans << endl;}}}
- zoj 2857 Image Transformation
- ZOJ 2857 Image Transformation
- zoj 2857 Image Transformation
- ZOJ 2857 Image Transformation
- ZOJ 2857Image Transformation
- zoj-【2857 Image Transformation 】
- zoj 2857 Image Transformation水题
- ZOJ 2857: Image Transformation 【vector】
- Solution of ZOJ 2857 Image Transformation
- ZOJ Problem Set - 2857 Image Transformation
- ZOJ 2857 Image Transformation(像素)
- ZOJ Problem Set - 2857 Image Transformation
- Image Transformation
- Image Transformation
- SDUT 1104 Image Transformation
- [cv]Image transformation
- zju2857图像转换Image Transformation
- ZOJ 1047 Image Perimeters
- jQuery 自定义函数方法
- 调查:你目前使用的QTP版本是多少?
- 黑马程序员—Java高新技术2
- 现代软件工程讲义 4 方法论 - 事后诸葛亮会议
- linux平台下 延迟工作队列实例
- zoj 2857 Image Transformation
- RHEL AS4 上oracle10gR2 静默安装
- 含有return 的try catch finally的执行顺序
- Windows 蓝屏代码详解
- 2974
- 磁盘空间的处理
- 用Column Family作为索引
- 无题
- 由坑爹的编译想起的