您的位置:首页
codeforces水题100道 第十一题 Codeforces Round #143 (Div. 2) A. Team (brute force)
2016-07-20 17:07
405 查看
题目链接:http://www.codeforces.com/problemset/problem/231/A
题意:问n道题目当中有多少道题目是至少两个人会的。
C++代码:
C++
题意:问n道题目当中有多少道题目是至少两个人会的。
C++代码:
#include <iostream> using namespace std; int n, a, b, c, ans; int main() { cin >> n; while (n--) { cin >>a >> b >> c; if (a + b + c >= 2) ans ++; } cout << ans; return 0; }
C++
相关文章推荐
- js报错:Uncaught SyntaxError: Unexpected token ILLEGAL
- 2016 Multi-University Training Contest 1 1005 Necklace
- 各种数据报头信息
- linux下乱码问题及解决方式
- androidone -小插件倒计时
- Android Image 圆角图片与圆形图片 ImageView
- Linux环境下修改python matplotlib显示中文乱码方格
- 阿里云服务器安全配置
- HDU 1999 不可摸数 (约数和。。)
- Node——异步I/O
- Linux学习笔记
- 工厂模式
- ionic开发移动应用总结
- 字符串匹配
- Scala学习日志——一切从使用开始
- hdoj1772Cake(GCD,数学)
- Ext.NET的GridPanel导出Excel
- LeakCanary: 让内存泄露无所遁形
- Java集合(7):HashMap
- nodejs URL 详解