#3979
suma37
Se dă un număr natural nenul n
. Calculați suma cifrelor lui n
care sunt mai mari sau egale cu 3
și mai mici sau egale cu 7
.
Problema | suma37 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #34113866 | Utilizator | |
Fișier | suma37.pas | Dimensiune | 170 B |
Data încărcării | 21 Ianuarie 2022, 15:33 | Scor / rezultat | 10 puncte |
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for i386 Compiling suma37.pas suma37.pas(5,23) Warning: Variable "m" does not seem to be initialized suma37.pas(8,31) Warning: Variable "s" does not seem to be initialized Linking the.exe 9 lines compiled, 0.0 sec 2 warning(s) issued /usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
4 | 0 secunde | OK. | 5 | 5 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 10 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema suma37 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ă.