Pagini recente » Borderou de evaluare (job #3249785) | Borderou de evaluare (job #2572747) | Borderou de evaluare (job #2325528) | Borderou de evaluare (job #1627219) | Borderou de evaluare (job #1958368)
Borderou de evaluare (job #1958368)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:2:61: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int v[7133]={1,1};int main(){freopen("tamplar.in","r",stdin);freopen("tamplar.out","w",stdout);int N,i,j,t,b=100000;scanf("%d",&N);for(i = 2; i < N; i++){for(j=1,t=0;j<=v[0]||t;j++,t/=b){v[j]=(t+=v[j]*i)%b;}v[0]=j-1;}printf("%d",v[v[0]]);for(i=v[0]-1;i>0;i--){printf("%05d",v[i]);}return 0;}
^
user.cpp:2:95: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int v[7133]={1,1};int main(){freopen("tamplar.in","r",stdin);freopen("tamplar.out","w",stdout);int N,i,j,t,b=100000;scanf("%d",&N);for(i = 2; i < N; i++){for(j=1,t=0;j<=v[0]||t;j++,t/=b){v[j]=(t+=v[j]*i)%b;}v[0]=j-1;}printf("%d",v[v[0]]);for(i=v[0]-1;i>0;i--){printf("%05d",v[i]);}return 0;}
^
user.cpp:2:131: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int v[7133]={1,1};int main(){freopen("tamplar.in","r",stdin);freopen("tamplar.out","w",stdout);int N,i,j,t,b=100000;scanf("%d",&N);for(i = 2; i < N; i++){for(j=1,t=0;j<=v[0]||t;j++,t/=b){v[j]=(t+=v[j]*i)%b;}v[0]=j-1;}printf("%d",v[v[0]]);for(i=v[0]-1;i>0;i--){printf("%05d",v[i]);}return 0;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | OK | 10 |
2 | 0ms | 276kb | OK | 10 |
3 | 0ms | 280kb | OK | 10 |
4 | 0ms | 284kb | OK | 10 |
5 | 0ms | 284kb | OK | 10 |
6 | 0ms | 280kb | OK | 10 |
7 | 0ms | 280kb | OK | 10 |
8 | 24ms | 284kb | OK | 10 |
9 | 120ms | 300kb | OK | 10 |
10 | 216ms | 304kb | OK | 10 |
Punctaj total | 100 |