ACM(Array Complicated Manipulation)
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 204 Accepted Submission(s): 48
The operation is to choose a minimum number from the array which is never been chosen, then change the status of its multiples excluding itself, i.e remove the multiples of the chosen number if they are in the array , otherwise add it to the array.keep the order after change.
For instance, the first step, choose number 2, change the status of 4, 6, 8, 10... They are all removed from the array. The second step, choose 3, change the status of 6, 9, 12, 15...
Pay attention: 9 and 15 are removed from the array while 6 and 12 are added to the array.
2 30 90 0
yes yes noHintThe number n never has a prime factor greater than 13000000, but n may be extremely large.
当m的素因子没有重复的时候,
当m有重复素因子时,能改变n状态的数的个数加上c(n,n)=1变成了奇数,
注意1和高精度
137



被折叠的 条评论
为什么被折叠?



