Pagini recente » Borderou de evaluare (job #161646) | Borderou de evaluare (job #2724925) | Borderou de evaluare (job #2839502) | Borderou de evaluare (job #50265) | Borderou de evaluare (job #2570412)
Borderou de evaluare (job #2570412)
Raport evaluator
Compilare:
main.cpp: In function 'int comb(long long int, long long int)':
main.cpp:45:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(putp(a)>putp(b)+putp(a-b))
^~
main.cpp:47:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
return (fact(a)*inv[(fact(b)*fact(a-b))%p])%p;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:63:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("jap2.in","r",stdin);
^
main.cpp:64:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("jap2.out","w",stdout);
^
main.cpp:66:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &p, &q);
^
main.cpp:69:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld\n", &a, &b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 388ms | 17170kb | OK | 5 |
2 | 351ms | 17301kb | OK | 5 |
3 | 330ms | 17170kb | OK | 5 |
4 | 332ms | 17170kb | OK | 5 |
5 | 408ms | 17432kb | OK | 5 |
6 | 392ms | 17326kb | OK | 5 |
7 | 370ms | 17039kb | OK | 5 |
8 | 364ms | 17170kb | OK | 5 |
9 | 474ms | 17301kb | OK | 5 |
10 | 484ms | 17432kb | OK | 5 |
11 | 529ms | 17039kb | OK | 5 |
12 | 1090ms | 17039kb | OK | 5 |
13 | 1585ms | 17301kb | OK | 5 |
14 | 1349ms | 17432kb | OK | 5 |
15 | 449ms | 17432kb | OK | 5 |
16 | 726ms | 17301kb | OK | 5 |
17 | 1155ms | 18087kb | OK | 5 |
18 | 1092ms | 17956kb | OK | 5 |
19 | 1142ms | 18350kb | OK | 5 |
20 | 1173ms | 18219kb | OK | 5 |
Punctaj total | 100 |