#454
Se citesc 3 numere naturale z l a. Să se decidă dacă reprezintă o dată calendaristică corectă, în format zi luna an.
| Problema | Calendar | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #61427216 | Utilizator | |
| Fișier | calendar.cpp | Dimensiune | 1.15 KB |
| Data încărcării | 27 Noiembrie 2025, 11:57 | Scor/rezultat | 50 puncte |
calendar.cpp: In function 'int main()': calendar.cpp:7:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(0>l>12) cout<<"NU"; ^ calendar.cpp:14:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(0>z>29) cout<<"NU"; ^ calendar.cpp:19:21: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(0>z>28) cout<<"NU"; ^ calendar.cpp:29:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(0>z>31) cout<<"NU"; ^ calendar.cpp:34:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(0>z>30) cout<<"NU"; ^ calendar.cpp:42:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(0>z>31) cout<<"NU"; ^ calendar.cpp:47:25: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(0>z>30) cout<<"NU"; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0 secunde | OK. | 10 | 10 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | OK. | 10 | 10 | ||
| 6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0 secunde | OK. | 10 | 10 | ||
| 8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0 secunde | OK. | 10 | 10 | ||
| 10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 50 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Calendar 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ă.