#4641
Știind că scopul lui Stresu’ este să o prindă pe d-ra R, scrieți un program care să determine timpul minim în care Stresu’ poate ajunge în aceeași cameră cu d-ra R.
CNER CODE clasa a X-a
Problema | drar | Operații I/O |
![]() drar.in /drar.out
|
---|---|---|---|
Limita timp | 0.7 secunde | Limita memorie |
Total: 128 MB
/
Stivă 8 MB
|
Id soluție | #56218833 | Utilizator | |
Fișier | drar.cpp | Dimensiune | 2.74 KB |
Data încărcării | 10 Februarie 2025, 19:45 | Scor / rezultat | 63 puncte |
drar.cpp: In function 'int main()': drar.cpp:104:40: warning: array subscript has type 'char' [-Wchar-subscripts] pos = {pos.lin + dirLin[chartodir[c]], pos.col + dirCol[chartodir[c]]}; ^ drar.cpp:104:72: warning: array subscript has type 'char' [-Wchar-subscripts] pos = {pos.lin + dirLin[chartodir[c]], pos.col + dirCol[chartodir[c]]}; ^ drar.cpp:74:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("drar.in", "r", stdin); ^ drar.cpp:75:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("drar.out", "w", stdout); ^ drar.cpp:77:64: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d%d", &n, &m, &q, &start.lin, &start.col, &k); ^ drar.cpp:82:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &lin, &col); ^ drar.cpp:90:54: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &a.lin, &a.col, &b.lin, &b.col); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 2 | 2 | ||
2 | 0 secunde | OK. | 2 | 2 | ||
3 | 0 secunde | OK. | 3 | 3 | ||
4 | 0 secunde | OK. | 3 | 3 | ||
5 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
6 | 0 secunde | OK. | 3 | 3 | ||
7 | 0 secunde | OK. | 4 | 4 | ||
8 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
9 | 0 secunde | OK. | 4 | 4 | ||
10 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
12 | 0 secunde | OK. | 4 | 4 | ||
13 | 0 secunde | OK. | 2 | 2 | ||
14 | 0 secunde | OK. | 2 | 2 | ||
15 | 0 secunde | OK. | 2 | 2 | ||
16 | 0 secunde | OK. | 2 | 2 | ||
17 | 0 secunde | OK. | 2 | 2 | ||
18 | 0 secunde | OK. | 2 | 2 | ||
19 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
20 | 0 secunde | OK. | 2 | 2 | ||
21 | 0 secunde | OK. | 2 | 2 | ||
22 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
23 | 0 secunde | OK. | 3 | 3 | ||
24 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
25 | 0 secunde | OK. | 3 | 3 | ||
26 | 0 secunde | OK. | 2 | 2 | ||
27 | 0 secunde | OK. | 2 | 2 | ||
28 | 0 secunde | OK. | 2 | 2 | ||
29 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
30 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
31 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
32 | 0 secunde | OK. | 2 | 2 | ||
33 | 0 secunde | OK. | 2 | 2 | ||
34 | 0 secunde | OK. | 2 | 2 | ||
35 | 0 secunde | OK. | 2 | 2 | ||
36 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
37 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
38 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
39 | 0 secunde | OK. | 2 | 2 | ||
40 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
Punctaj total | 63 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema drar 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ă.