pat乙级-1017 a除以b (20)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

#include <cstring>
using namespace std;

int main()
{
string A,Q;
int B ,R=0,i=0,j=0;
cin>>A>>B;
int temp=0;
if(A.length()>1000||B<=0||B>9)
{
return 0;
}
while(A[i]!='