CSU-1268
来源:互联网 发布:mac 流程图软件 免费 编辑:程序博客网 时间:2024/06/06 01:48
http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1268
#include <iostream>#include<math.h>using namespace std;int main(){int T=0;cin>>T;while(T--){int N,S,D1,D2,D3;cin>>N>>S>>D1>>D2>>D3;int a[11]={0};int re[4]={0};for(int T1=1;T1<=N;T1++){cin>>a[T1];if(abs(a[T1]-S)<=D1)re[3]++;else if(abs(a[T1]-S)<=D2)re[2]++;else if(abs(a[T1]-S)<=D3)re[1]++;}cout<<re[3]<<' '<<re[2]<<' '<<re[1]<<endl;}return 0;}
0 0
- CSU-1268
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- CSU
- linux 下mysql数据的导入、导出
- Spring 对象XML映射
- windows 10 high dpi problem fix
- JZOJ 3506. 【NOIP2013模拟11.4A组】善良的精灵
- leetcode--112. Path Sum
- CSU-1268
- Retrofit简单的实例
- Java 8 λ表达式
- ubuntu开启SSH服务远程登录
- F - Flying to the Mars HDU - 1800
- Git学习使用(五):分支管理<Ⅰ>
- Servlet 生命周期、工作原理
- P1149 火柴棒等式
- Codeforce 712A Memory and Crow