Pagini recente » Borderou de evaluare (job #1276004) | Borderou de evaluare (job #1368902) | Borderou de evaluare (job #1466622) | Borderou de evaluare (job #635455) | Borderou de evaluare (job #2224591)
Borderou de evaluare (job #2224591)
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 res=1;scanf("%d",&n);for(int i=1;i<=2*n;i++)if(i<=n)res*=i,res%=MOD;else if(i>n+1)poz*=i;poz%=MOD;res=log_put(res,MOD-2);poz*=res;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 res=1;scanf("%d",&n);for(int i=1;i<=2*n;i++)if(i<=n)res*=i,res%=MOD;else if(i>n+1)poz*=i;poz%=MOD;res=log_put(res,MOD-2);poz*=res;poz%=MOD;printf("%lld\n",poz);return 0;
^
user.cpp:3:134: 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 res=1;scanf("%d",&n);for(int i=1;i<=2*n;i++)if(i<=n)res*=i,res%=MOD;else if(i>n+1)poz*=i;poz%=MOD;res=log_put(res,MOD-2);poz*=res;poz%=MOD;printf("%lld\n",poz);return 0;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1312kb | OK | 4 |
2 | 0ms | 1320kb | OK | 4 |
3 | 0ms | 1312kb | Incorect | 0 |
4 | 0ms | 1316kb | Incorect | 0 |
5 | 0ms | 1316kb | Incorect | 0 |
6 | 0ms | 1312kb | Incorect | 0 |
7 | 0ms | 1316kb | Incorect | 0 |
8 | 0ms | 1316kb | Incorect | 0 |
9 | 0ms | 1316kb | Incorect | 0 |
10 | 0ms | 1312kb | Incorect | 0 |
11 | 0ms | 1320kb | Incorect | 0 |
12 | 0ms | 1316kb | Incorect | 0 |
13 | 0ms | 1312kb | Incorect | 0 |
14 | 0ms | 1312kb | Incorect | 0 |
15 | 0ms | 1316kb | Incorect | 0 |
16 | 0ms | 1312kb | Incorect | 0 |
17 | 0ms | 1316kb | Incorect | 0 |
18 | 0ms | 1312kb | Incorect | 0 |
19 | 0ms | 1312kb | Incorect | 0 |
20 | 4ms | 1312kb | Incorect | 0 |
21 | 4ms | 1312kb | Incorect | 0 |
22 | 4ms | 1312kb | Incorect | 0 |
23 | 24ms | 1316kb | Incorect | 0 |
24 | 40ms | 1312kb | Incorect | 0 |
25 | 44ms | 1316kb | Incorect | 0 |
Punctaj total | 8 |