A. Case of the Zeros and Ones
来源:互联网 发布:iphone6手机壳淘宝 编辑:程序博客网 时间:2024/06/05 06:47
题目链接:http://codeforces.com/contest/556/problem/A
#include <iostream>#include <cstdlib>using namespace std;int main(){ int m; string s; cin>>m>>s; int j=0; for(int i=0; i<m; i++) { if(s[i]=='0') j++; } cout<<abs(m-2*j); return 0;}
0 0
- A. Case of the Zeros and Ones
- A. Case of the Zeros and Ones
- CodeForces 556A Case of the Zeros and Ones
- CodeForces-556A Case of the Zeros and Ones
- codeforces 556A Case of the Zeros and Ones
- Codeforces 556A:Case of the Zeros and Ones
- coderforce A. Case of the Zeros and Ones
- CodeForces 556A Case of the Zeros and Ones
- 【52.49%】【codeforces 556A】Case of the Zeros and Ones
- Case of the Zeros and Ones
- Case of the Zeros and Ones
- Case of the Zeros and Ones
- Codeforces 556A Case of the Zeros and Ones 消除01串
- A. Case of the Zeros and Ones(Codeforces Round #310 (Div. 2) 栈)
- CF#310-A-Case of the Zeros and Ones-链表模拟
- CodeForces NO.556A Case of the Zeros and Ones(stack,110101010)
- Codeforces Round #310 (Div. 2)-A. Case of the Zeros and Ones
- the Zeros and Ones
- 马斯克超等高铁或起首在亚洲建成
- 判定一个点是否在三角形内
- hdu 5276 YJCtricks time
- ecshop 调试分类页面技巧 debug_print_backtrace
- java 反射详解
- A. Case of the Zeros and Ones
- Android的帧动画补间动画,新手复习
- 回头一望,继续向前
- request exceeds 8192 bytes
- 2015年7月4日解决问题:eclipse连接access数据库问题//java五中布局及其应用方法//equals()与==的区别等
- 破解VI密码
- QT 利用slite3和mediainfodll类获取多媒体标签
- iOS动力学UIDynamic讲解(一)
- Android 内存管理 &Memory Leak & OOM 分析