Team_Codeforces_231A
来源:互联网 发布:电影人工智能观后感 编辑:程序博客网 时间:2024/06/06 20:21
原题链接:http://codeforces.com/problemset/problem/231/A
思路:表决器,统计有多少行中1的个数大于等于2
#include<cstdio>int main(){ int n, cnt = 0; scanf("%d", &n); while(n--) { int t, cnthere = 0; for(int i = 0; i < 3; i++) { scanf("%d", &t); if(t) cnthere++; } if(cnthere >= 2) cnt++; } printf("%d\n", cnt); return 0;}
阅读全文
0 0
- Team_Codeforces_231A
- Java字符串内存分配
- HTML零散小知识
- 1.1 学习之初;1.2 约定;1.3 认识Linux;1.4 创建虚拟机;1.5安装centos7
- linux内核模块之Makefile模板
- Java多线程
- Team_Codeforces_231A
- 右值引用
- Hystrix 源码解析 —— 命令执行(一)之正常执行逻辑
- 多线程互斥量Mutex的使用
- HTML5:理解head
- 【分布式架构】企业级分布式应用服务EDAS使用攻略(上篇)
- Kotlin回调的使用以及let、also、with、run、apply函数的用法
- windows adb不识别(VID PID更改)
- 【Python小游戏】俄罗斯方块