#4648
Căpcăunul cel rău o ține captivă pe frumoasa prințesă într-un castel izolat, într-un turn înalt. RAU-Gigel prinde de veste și se duce într-un suflet să o salveze. Ajunge în preajma castelului, însă între cărarea pe care se află el și donjonul prințesei este săpat un mare șanț de apărare pe care RAU-Gigel trebuie să îl treacă. Dar personajul nostru principal are o putere magică, el activează unealta „Piatră” care îi oferă accesul la un morman de pietre pe care, folosindu-se de puterea minții, le poate așeza unele peste altele în speranța că va ajunge pe partea cealaltă a șanțului. Fiind foarte obosit după drumul îndelungat și plin de peripeții, RAU-Gigel nu poate activa magia la capacitate maximă. Reușește oare RAU-Gigel să așeze pietrele? Chiar și așa, căpcăunul îi rezervă și alte surprize, pentru care RAU-Gigel are nevoie de ajutorul vostru.
RAU-Coder 2024
Problema | Donjon | Operații I/O |
![]() donjon.in /donjon.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #57538559 | Utilizator | |
Fișier | donjon.cpp | Dimensiune | 3.72 KB |
Data încărcării | 03 Aprilie 2025, 18:47 | Scor / rezultat | 50 puncte |
donjon.cpp: In function 'int main()': donjon.cpp:40:23: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^j==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:39:18: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==0) ^ donjon.cpp:44:21: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^1==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:43:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==1) ^ donjon.cpp:48:28: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^(j+1)==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:47:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==2) ^ donjon.cpp:66:27: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^(j+1)==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:65:18: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==0) ^ donjon.cpp:73:24: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^j==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:72:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==2) ^ donjon.cpp:77:22: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^1==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:76:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==3) ^ donjon.cpp:94:27: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^(j+1)==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:93:18: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==0) ^ donjon.cpp:101:24: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^j==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:100:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==2) ^ donjon.cpp:105:22: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^1==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:104:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==3) ^ donjon.cpp:120:21: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^j==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:119:17: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==0) ^ donjon.cpp:124:21: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^1==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:123:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==1) ^ donjon.cpp:128:27: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses] if(h^(j+1)==0)fout<<"C"<<" "<<n/k<<'\n'; ^ donjon.cpp:127:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(j%4==2) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 50 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Donjon 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ă.