博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CodeForces 595A Vitaly and Night
阅读量:7103 次
发布时间:2019-06-28

本文共 493 字,大约阅读时间需要 1 分钟。

水题。

#include
#include
#include
#include
using namespace std;int a[300][300];int n,m,ans;int main(){ scanf("%d%d",&n,&m); for(int i=1;i<=n;i++) for(int j=1;j<=2*m;j++) scanf("%d",&a[i][j]); ans=0; for(int i=1;i<=n;i++) for(int j=1;j<=m;j++) if(a[i][2*j-1]+a[i][2*j]!=0) ans++; printf("%d\n",ans); return 0;}

 

转载于:https://www.cnblogs.com/zufezzt/p/5469155.html

你可能感兴趣的文章
SpringMVC实现全局异常捕获处理
查看>>
2018Android暑期实习面试总结
查看>>
Node.js轻松入门之NPM使用介绍
查看>>
Git从远程库克隆
查看>>
谣言粉碎机 - 极短时间内发送两个Odata request,前一个会自动被cancel掉?
查看>>
设计模式-单例模式
查看>>
Angular 从0到1:Rx--隐藏在 Angular 中的利剑
查看>>
iOS crash 日志堆栈解析
查看>>
React Mixins入门指南
查看>>
Flutter如何和Native通信-Android视角
查看>>
MVP 与 MVVM 优缺点总结
查看>>
『技术分享』—— 我的第一个微信小程序-趣闻
查看>>
像仓管一样管理redux-仓管也需要才艺(中间件)
查看>>
基于 HTML5 OpenLayers3 实现 GIS 电信资源管理系统
查看>>
架构师眼里的高并发架构
查看>>
npm 全局安装到发布包的问题
查看>>
for in,Object.keys(),for of,hasOwnProperty()怎么用?
查看>>
日记9(代码重构)
查看>>
云数据库 Redis 版功能特性
查看>>
Git常用命令及日常问题集锦
查看>>