HDU5980(水题)
来源:互联网 发布:网络灰色收入路子 编辑:程序博客网 时间:2024/05/29 02:35
签到题
code:
#include<stdio.h>#include<string.h>#include<math.h>#include<algorithm>#include<iostream>#include<string>#include <set>#include<time.h>//a&3==a%4using namespace std ;#define ll long long#define mem(a) memset(a,0,sizeof(a))const double eps = 1e-8;const int maxn = 110010;//须填写const int inf = 0x3f3f3f3f;const int chara=255;int main(){ int _case; while(scanf("%d",&_case)!=EOF) { int sum=0; while(_case--) { int n; scanf("%d",&n); while(n) { if((n&chara)==97) { sum++; } n=n>>8; } } printf("%d\n",sum); } return 0;}//寇瑟茹酒
阅读全文
0 0
- HDU5980(水题)
- hdu5980
- HDU5980 Find Small A
- 位运算--hdu5980 Find Small A
- HDU 1800(水题!!! @@)
- poj2418(水题,qsort)
- Ekka Dokka(水题)
- hdu_4350 Card(水题)
- POJ 2027(水题)
- hdoj 1017(水题)
- uva 11461(水题)
- poj2017(水题)
- poj2301(水题)
- Quicksum(poj3094,水题)
- 养猪(dp水题)
- poj 3829(水题)
- hdu4763(kmp水题)
- HDU 1001(水题)
- 使用ThinkPhp3.2.3 的S函数,键不能是小驼峰形式,会返回false
- dinic 模板 待补充
- 在HTML中的静态包含(HTML中提取公共代码HTML)
- js各种验证文本框输入格式
- 边缘检测之Robert算子
- HDU5980(水题)
- 二维数组
- 算法分析与设计丨第九周丨LeetCode(13)——Redundant Connection(Medium)
- angular实现简单的用户信息表
- Git解决pull无法操作成功
- indexDB
- 有趣的介绍CAP理论
- 索引 index
- 如何垂直居中一个DIV