摘要: http://ac.jobdu.com/problem.php?id=1402位运算没的说,不过,如果每道题都考STL,那还有意思么? 1 #include <stdio.h> 2 #include <bitset> 3 using namespace std; 4 5 bitset<1000001> bits; 6 bitset<1000001> bits_assit; 7 int main() 8 { 9 int n;10 while(scanf("%d",&n)!=EOF){11 bits.reset();12 阅读全文
posted @ 2012-02-25 16:50 linyvxiang 阅读(292) 评论(4) 推荐(0) 编辑
摘要: http://ac.jobdu.com/problem.php?id=1149 1 #include <iostream> 2 #include <stdio.h> 3 #include <map> 4 #include <string.h> 5 #include <string> 6 using namespace std; 7 8 char str[110]; 9 10 int main()11 {12 int len;13 while(scanf("%s",str)!=EOF){14 map<strin 阅读全文
posted @ 2012-02-25 16:05 linyvxiang 阅读(197) 评论(0) 推荐(0) 编辑