标签:com class blog div code ext string log color tab ble
3 11 1001110110 101 110010010010001 1010 110100010101011
3 0 3
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 |
#include<iostream>#include<string>using
namespace std;int
main(){string s1,s2;int
n;cin>>n;while(n--){cin>>s1>>s2;unsigned int
m=s2.find(s1,0);int
num=0;while(m!=string::npos){num++;m=s2.find(s1,m+1);}cout<<num<<endl;}} |
Binary String Matching,布布扣,bubuko.com
标签:com class blog div code ext string log color tab ble
原文地址:http://www.cnblogs.com/52Cyan/p/3698339.html