zf
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
int *my_factor(int n){
|
||||
|
||||
if (n <= 0) return NULL;
|
||||
if (n == 1) return 1;
|
||||
//if (n == 1) return 1;
|
||||
|
||||
int cnt = 0;
|
||||
int tmp = n;
|
||||
@@ -32,7 +32,7 @@ int *my_factor(int n){
|
||||
if (tmp % div == 0){
|
||||
*(kebab + index) = div;
|
||||
index ++;
|
||||
tmp = tmp / div;
|
||||
tmp = tmp / div;
|
||||
}
|
||||
else div ++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user