test2
n = n % m;
Vector v = new Vector();
for (;;) {
int a=0;
v.add(n);
n *= 10;
n = n % m;
if (n == 0)
return 0;
if (v.indexOf(n) > 0) {
return v.size()-v.indexOf(n); //减去n的主要目的是有些循环节为0.36666循环节长度此时为1
// [11, 6, 8, 2, 7, 5, 11] //-v.indexOf(n)需要减去11
} // _________________________________;填空
}
test2test2test2test2
test2
# test2test2
`n = n % m;
Vector v = new Vector();
for (;