#2987
Buletin
Se dă un număr natural n
cu exact 13 cifre reprezentând un cod numeric personal. Să se afișeze anul, luna și ziua nașterii deținătorului.
Problema | Buletin | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 32 MB
/
Stivă 4 MB
|
Id soluție | #51296667 | Utilizator | |
Fișier | buletin.c | Dimensiune | 426 B |
Data încărcării | 05 Iunie 2024, 02:18 | Scor / rezultat | 100 puncte |
buletin.c: In function 'main': buletin.c:10:9: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("0%d ", A); ^ buletin.c:12:9: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d ", A); ^ buletin.c:14:9: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("0%d ", L); ^ buletin.c:16:9: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d ", L); ^ buletin.c:18:9: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("0%d ", Z); ^ buletin.c:20:9: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d ", Z); ^ buletin.c:4:10: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &n); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 10 | 10 | Exemplu | |
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
6 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Buletin 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ă.