codeforces 441A Valera and Antique Items
来源:互联网 发布:python assert() 编辑:程序博客网 时间:2024/06/05 19:48
点击打开链接
题我没翻译明白,唉~,还是英语不好,翻译清楚了,就明白有多简单了。
#include<cstdio>#include<iostream>#include<algorithm>#include<cstring>using namespace std;int main(){ int n,v; cin>>n>>v; int a[100],t=0; for(int i=0; i<n; i++) { int k,x; bool flag=false; cin>>k; for(int j=0; j<k; j++) { cin>>x; if(v>x) flag=true; } if(flag) a[t++]=i+1; } cout<<t<<endl; for(int i=0; i<t; i++) { if(i==0) cout<<a[i]; else cout<<" "<<a[i]; } if(t) cout<<endl; return 0;}
阅读全文
0 0
- CodeForces 441 A. Valera and Antique Items
- CodeForces 441A Valera and Antique Items
- CodeForces 441A Valera and Antique Items
- codeforces 441A Valera and Antique Items
- CodeForces 252A-Valera and Antique Items
- A. Valera and Antique Items
- Codeforces Round #252 (Div. 2)A. Valera and Antique Items
- Codeforces Round #252 (Div. 2) A. Valera and Antique Items
- Codeforces Round #252 (Div. 2) 441A Valera and Antique Items
- Codeforces Round #252(Div. 2) 441A. Valera and Antique Items 水题
- Codeforces441A_Valera and Antique Items(水题)
- codeforces 404A - Valera and X
- codeforces A. Valera and Plates 题解
- Codeforces A. Valera and X 题解
- CodeForces 379A Valera and Plates
- CodeForces - 404A: Valera and X
- CodeForces 404A Valera and X【水题】
- Codeforces 441C Valera and Tubes
- 支付宝APP支付-php后台签名以及验签
- cmake make
- T-hiho字符串
- js滚动条滚动到底部和顶部
- 《TCP IP网络编程》尹圣雨----7.第四章习题
- codeforces 441A Valera and Antique Items
- 堆外内存与NIO
- 图片base64解码,压缩,将图片链接转换为base64(必须http开头)
- 重温面向对象的思想——构造器和重载
- 用cmd命令行编译JAVA程序时出现“找不到或无法加载主类”
- input标签
- 解决eclipse中Errors running builder JavaScript Validator的问题
- MD5 加密
- 报错JedisConnectionException: Could not get a resource from the pool 已解决。(不是代码问题,Tomcat缓存问题)