北邮OJ 1005. 16校赛-Hawei Learning C
来源:互联网 发布:网络广告制作软件 编辑:程序博客网 时间:2024/05/01 18:56
时间限制 1000 ms 内存限制 65536 KB
题目描述
Hawei is learning C programming language recently, but he is so naive that he mistakes the
Unaware of this slight difference, Hawei checked for the bug for a whole day. When he finally found it, he was so angry that he decided to define two new functions
, and
On the other hand, function
输入格式
The input starts with a single line containing an integer
For each test case, the first line contains one integers
输出格式
For each test case, output a single line containing a 01 string, indicating the answer of
输入样例
13100
输出样例
1
#include<cstdio>#define N 100050using namespace std;int main(){ int t,n,i; char str[N]; for(scanf("%d",&t);t--;){ scanf("%d",&n); scanf("%s",str); for(i=0;str[i];i++){ if(str[i]=='1'){ printf("1"); } } printf("\n"); } return 0;}
- 北邮OJ 1005. 16校赛-Hawei Learning C
- hawei 9306 snmp 详细oid
- C++learning
- oj-16-C-学生系统
- OJ C
- 北邮OJ 884. 16校赛-Average Modulo
- 北邮OJ 1010. 16校赛-Binary Strings
- 北邮OJ 1021. 16校赛-Stone Game
- Some C Learning Notes
- Learning GNU C
- zz(learning c++)
- C 指针[learning]
- Learning C from Java
- For learning the C
- Learning C with gdb
- C. Learning Languages
- Start learning C
- <Essential C++> Learning
- 去掉tableView中多余的分割线
- 各种数据库的分页查询语句
- 世纪佳缘财务及运营数据分析
- humb变小点
- python中range()与xrange()区分
- 北邮OJ 1005. 16校赛-Hawei Learning C
- 粗糙的SEM点击率分析模型
- Redis Master/Salve Replication(主从复制模式)
- Linux下C语言获取目录中的文件列表
- 《程序员的思维修炼》读书笔记
- Python中使用BeautifulSoup做网页解析
- SpringMVC注解@RequestParam全面解析
- 分区交换 技术
- android开发中防止刚进入activity时edittext获取焦点,防止自动自动弹出软键盘