Pagini recente » Borderou de evaluare (job #2751382) | Borderou de evaluare (job #2563067) | Borderou de evaluare (job #1915637) | Borderou de evaluare (job #1900838) | Borderou de evaluare (job #2224592)
Borderou de evaluare (job #2224592)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:3:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int main(){freopen("dirichlet.in","r",stdin);freopen("dirichlet.out","w",stdout);int n;long long poz=1;long long r=1;scanf("%d",&n);for(int i=1;i<=2*n;i++)if(i<=n)r*=i,r%=MOD;else if(i>n+1)poz*=i;poz%=MOD;r=log_put(r,MOD-2);poz*=r;poz%=MOD;printf("%lld\n",poz);return 0;
^
user.cpp:3:81: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int main(){freopen("dirichlet.in","r",stdin);freopen("dirichlet.out","w",stdout);int n;long long poz=1;long long r=1;scanf("%d",&n);for(int i=1;i<=2*n;i++)if(i<=n)r*=i,r%=MOD;else if(i>n+1)poz*=i;poz%=MOD;r=log_put(r,MOD-2);poz*=r;poz%=MOD;printf("%lld\n",poz);return 0;
^
user.cpp:3:132: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int main(){freopen("dirichlet.in","r",stdin);freopen("dirichlet.out","w",stdout);int n;long long poz=1;long long r=1;scanf("%d",&n);for(int i=1;i<=2*n;i++)if(i<=n)r*=i,r%=MOD;else if(i>n+1)poz*=i;poz%=MOD;r=log_put(r,MOD-2);poz*=r;poz%=MOD;printf("%lld\n",poz);return 0;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1316kb | OK | 4 |
2 | 0ms | 1312kb | OK | 4 |
3 | 0ms | 1316kb | Incorect | 0 |
4 | 0ms | 1312kb | Incorect | 0 |
5 | 0ms | 1316kb | Incorect | 0 |
6 | 0ms | 1312kb | Incorect | 0 |
7 | 0ms | 1312kb | Incorect | 0 |
8 | 0ms | 1312kb | Incorect | 0 |
9 | 0ms | 1316kb | Incorect | 0 |
10 | 0ms | 1312kb | Incorect | 0 |
11 | 0ms | 1316kb | Incorect | 0 |
12 | 0ms | 1316kb | Incorect | 0 |
13 | 0ms | 1320kb | Incorect | 0 |
14 | 0ms | 1316kb | Incorect | 0 |
15 | 0ms | 1312kb | Incorect | 0 |
16 | 0ms | 1320kb | Incorect | 0 |
17 | 0ms | 1316kb | Incorect | 0 |
18 | 0ms | 1316kb | Incorect | 0 |
19 | 0ms | 1312kb | Incorect | 0 |
20 | 4ms | 1316kb | Incorect | 0 |
21 | 4ms | 1316kb | Incorect | 0 |
22 | 4ms | 1316kb | Incorect | 0 |
23 | 20ms | 1316kb | Incorect | 0 |
24 | 40ms | 1316kb | Incorect | 0 |
25 | 44ms | 1316kb | Incorect | 0 |
Punctaj total | 8 |