#460
Se dau 2 numere naturale h m, reprezentând un ora curentă exprimată în ore şi minute. Să se determine care va fi ora peste x minute.
| Problema | Timp | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #60190543 | Utilizator | |
| Fișier | timp.cpp | Dimensiune | 243 B |
| Data încărcării | 21 Octombrie 2025, 09:07 | Scor/rezultat | 100 puncte |
timp.cpp: In function 'int main()': timp.cpp:9:5: warning: left operand of comma operator has no effect [-Wunused-value] 0 <= h1, h2 <= 23; ^ timp.cpp:9:15: warning: right operand of comma operator has no effect [-Wunused-value] 0 <= h1, h2 <= 23; ^ timp.cpp:10:5: warning: left operand of comma operator has no effect [-Wunused-value] 0 <= m1, m2 <= 59 ; ^ timp.cpp:10:15: warning: right operand of comma operator has no effect [-Wunused-value] 0 <= m1, m2 <= 59 ; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0 secunde | OK. | 20 | 20 | ||
| 3 | 0 secunde | OK. | 20 | 20 | ||
| 4 | 0 secunde | OK. | 20 | 20 | ||
| 5 | 0 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Timp 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ă.