#3682
Johnnie are un graf neorientat complet cu n noduri și vrea să afle câte drumuri de lungime k începând din nodul 1 există care se întorc în nodul 1.
IOIT 2020-21, Runda 3
| Problema | Walker | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 32 MB
/
Stivă 32 MB
|
| Id soluție | #55967233 | Utilizator | |
| Fișier | walker.cpp | Dimensiune | 1.17 KB |
| Data încărcării | 01 Februarie 2025, 09:24 | Scor/rezultat | 100 puncte |
walker.cpp: In function 'Mat inmultire(Mat, Mat)': walker.cpp:35:43: warning: narrowing conversion of '(((((long long int)A.Mat::a) * ((long long int)B.Mat::a)) + (((long long int)A.Mat::b) * ((long long int)B.Mat::c))) % 666013ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1LL * A.a * B.a + 1LL * A.b * B.c) % MOD, ^ walker.cpp:36:43: warning: narrowing conversion of '(((((long long int)A.Mat::a) * ((long long int)B.Mat::b)) + (((long long int)A.Mat::b) * ((long long int)B.Mat::d))) % 666013ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1LL * A.a * B.b + 1LL * A.b * B.d) % MOD, ^ walker.cpp:37:43: warning: narrowing conversion of '(((((long long int)A.Mat::c) * ((long long int)B.Mat::a)) + (((long long int)A.Mat::d) * ((long long int)B.Mat::c))) % 666013ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1LL * A.c * B.a + 1LL * A.d * B.c) % MOD, ^ walker.cpp:38:43: warning: narrowing conversion of '(((((long long int)A.Mat::c) * ((long long int)B.Mat::b)) + (((long long int)A.Mat::d) * ((long long int)B.Mat::d))) % 666013ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1LL * A.c * B.b + 1LL * A.d * B.d) % MOD ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 1 | 1 | Exemplu | |
| 2 | 0 secunde | OK. | 1 | 1 | Exemplu | |
| 3 | 0 secunde | OK. | 1 | 1 | Exemplu | |
| 4 | 0 secunde | OK. | 3 | 3 | ||
| 5 | 0 secunde | OK. | 5 | 5 | ||
| 6 | 0 secunde | OK. | 4 | 4 | ||
| 7 | 0 secunde | OK. | 5 | 5 | ||
| 8 | 0 secunde | OK. | 5 | 5 | ||
| 9 | 0 secunde | OK. | 5 | 5 | ||
| 10 | 0 secunde | OK. | 7 | 7 | ||
| 11 | 0 secunde | OK. | 7 | 7 | ||
| 12 | 0 secunde | OK. | 6 | 6 | ||
| 13 | 0 secunde | OK. | 8 | 8 | ||
| 14 | 0 secunde | OK. | 8 | 8 | ||
| 15 | 0 secunde | OK. | 8 | 8 | ||
| 16 | 0 secunde | OK. | 8 | 8 | ||
| 17 | 0 secunde | OK. | 9 | 9 | ||
| 18 | 0 secunde | OK. | 9 | 9 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Walker 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ă.