为什么他说我每个点第一行都Too short?

P1619 解一元二次方程的烦恼

```cpp #include <cstdio> #include <cmath> #include <cstring> char a[100000]; long long num,t=1; void ffuck(long long a) { for(int i=2;i<=a;++i) { int t=0; if(a%i==0) { t=1; a/=i; while(1) { if(a%i!=0) break; t++; a/=i; } printf("%d^%d",i,t); if(a!=1) printf("*"); } } } int fuck(long long a) { if(a==1) return 0; if(a==2||a==3) return 1; if(a%6!=1&&a%6!=5) return 0; int t=sqrt(a); for(int i=5;i<=t+1;i+=6) if(a%i==0||a%(i+2)==0) return 0; return 1; } int main() { freopen("aaa.txt","w",stdout); while(1) { num=0; gets(a); int len=strlen(a); for(int i=len-1;i>=0;i--) if(a[i]>=48&&a[i]<=57) { num+=t*(a[i]-48); t*=10; } printf("Enter the number="); if(num==0) break; if(num!=0) { printf("Prime? "); if(fuck(num)==1) { printf("Yes!\n"); printf("\n"); } if(fuck(num)==0) { printf("No!\n"); if(num>2&&num<40000000) { printf("%lld=",num); ffuck(num); printf("\n"); } if(num>=40000000) printf("The number is too large!\n"); printf("\n"); } } } return 0; } ``` 发错代码重发一遍
by 追风の裙子桑 @ 2018-11-07 16:15:17


~~你的函数名好暴躁啊嘤嘤嘤~~
by 杨小艾 @ 2018-11-07 16:19:44


@[追风の裙子桑](/space/show?uid=89177) 去掉freopen
by Dr.九命猫 @ 2018-11-07 16:23:19


@[Dr.九命猫](/space/show?uid=48726) 感谢,已经过了
by 追风の裙子桑 @ 2018-11-07 16:30:21


@[杨小艾](/space/show?uid=138398) QAQ
by 追风の裙子桑 @ 2018-11-07 16:32:07


|