20分,其他的都是wa,为啥?

P1075 [NOIP2012 普及组] 质因数分解

希望更丰富的展现?使用Markdown
by Stephen_Curry @ 2019-09-22 12:36:28


希望更丰富的展现?[使用Markdown](https://www.luogu.org/wiki/show?name=帮助:markdown)
by lady_GG @ 2019-09-22 12:45:25


@[Helenal](/space/show?uid=45385)
by lady_GG @ 2019-09-22 12:45:33


```cpp #include<stdio.h> #include<math.h> int main(){ long long n,p,q,i; scanf("%lld",&n); for(i=2;i*i<=n;i++) { if(n%i==0){ p=i; break; } } q=n/p; printf("%lld\n",q); return 0; } ``` @[Helenal](/space/show?uid=45385) 你开long long输入输出不用lld吗?
by 时间重洗 @ 2019-09-22 12:48:28


@[Helenal](/space/show?uid=45385) 你忘了2
by lady_GG @ 2019-09-22 12:48:57


@[脱发自动机](/space/show?uid=119959) 哦
by lady_GG @ 2019-09-22 12:59:02


我刚来
by lady_GG @ 2019-09-22 12:59:11


@[lady_GG](/space/show?uid=229402) 请问2是什么意思?
by Helenal @ 2019-09-22 13:00:22


@[lady_GG](/space/show?uid=229402) 没关系,下次注意
by ⚡小林孑⚡ @ 2019-09-22 13:00:31


@[根鸟](/space/show?uid=116239) 对哦!!!谢谢您!
by Helenal @ 2019-09-22 13:01:45


| 下一页