|
|
вернуться в форумwhat's wrong? #include<stdio.h> void main(){ int n,k=0,j; int result=1; char test[20]; scanf("%d %s",&n,test); for (j=0;j<20;j++) if (test[j]=='!') k++; if(n%k==0){ for(j=0;n-j*k!=k;j++){ result*=(n-j*k); }; result*=k; }else{ for(j=0;n-j*k!=n%k;j++){ result*=(n-j*k); }; result*=n%k; }; printf("%d",result); } this is my source code please tell me why my program is time limited exceeded |
|
|