#1462
Gasti
Problema | Gasti | Operații I/O |
gasti.in /gasti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #30137298 | Utilizator | |
Fișier | gasti.c | Dimensiune | 2.23 KB |
Data încărcării | 15 Iunie 2021, 12:25 | Scor / rezultat | 100 puncte |
gasti.c: In function 'main': gasti.c:92:9: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] fprintf(out, "%d", (long long)max1 * max2 % MOD * (long long)nmax2 % MOD); ^ gasti.c:97:9: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] fprintf(out, "%d", ((long long)nmax1 * (nmax1 - 1) / 2 % MOD) * (long long)patrat % MOD); ^ gasti.c:47:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d%d", &n, &m); ^ gasti.c:51:15: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d%d", &x, &y); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Corect ambele! | 10 | 10 | ||
2 | 0 secunde | Corect ambele! | 10 | 10 | ||
3 | 0 secunde | Corect ambele! | 10 | 10 | ||
4 | 0 secunde | Corect ambele! | 10 | 10 | ||
5 | 0.012 secunde | Corect ambele! | 10 | 10 | ||
6 | 0.02 secunde | Corect ambele! | 10 | 10 | ||
7 | 0.02 secunde | Corect ambele! | 10 | 10 | ||
8 | 0.028 secunde | Corect ambele! | 10 | 10 | ||
9 | 0.056 secunde | Corect ambele! | 10 | 10 | ||
10 | 0.068 secunde | Corect ambele! | 10 | 10 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Gasti face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.