#2292
Nevricos
Un număr X
se numește nevricos dacă este egal cu triplul produsului cifrelor lui X
.
Dându-se un șir S
de cifre nenule, să se determine câte dintre secvențele din S
au numere asociate nevricoase și câte dintre subșirurile lui S
au numere asociate nevricoase.
Problema | Nevricos | Operații I/O |
nevricos.in /nevricos.out
|
---|---|---|---|
Limita timp | 0.02 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #22588337 | Utilizator | |
Fișier | nevricos.cpp | Dimensiune | 423 B |
Data încărcării | 24 Aprilie 2020, 15:09 | Scor / rezultat | Eroare de compilare |
nevricos.cpp:9:1: error: stray '\342' in program {secv=subs=de1=de2=0;ant=‘0’;while(f>>a){ ^ nevricos.cpp:9:1: error: stray '\200' in program nevricos.cpp:9:1: error: stray '\230' in program nevricos.cpp:9:1: error: stray '\342' in program nevricos.cpp:9:1: error: stray '\200' in program nevricos.cpp:9:1: error: stray '\231' in program nevricos.cpp:10:1: error: stray '\342' in program if (a==‘5’&&ant==‘1’)secv++;if(a==‘4’&&ant==‘2’)secv++;if(a==‘1’)de1++;if(a==‘5’){subs+=de1;}if(a==‘2’)de2++; ^ nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\230' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\231' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\230' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\231' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\230' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\231' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\230' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\231' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\230' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\231' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\230' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\231' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\230' in program nevricos.cpp:10:1: error: stray '\342' in program nevricos.cpp:10:1: error: stray '\200' in program nevricos.cpp:10:1: error: stray '\231' in program nevricos.cpp:11:1: error: stray '\342' in program if(a==‘4’){subs+=de2;}ant=a;} ^ nevricos.cpp:11:1: error: stray '\200' in program nevricos.cpp:11:1: error: stray '\230' in program nevricos.cpp:11:1: error: stray '\342' in program nevricos.cpp:11:1: error: stray '\200' in program nevricos.cpp:11:1: error: stray '\231' in program nevricos.cpp:12:1: error: stray '\342' in program g<<secv<<”\n”<<subs;return 0;} ^ nevricos.cpp:12:1: error: stray '\200' in program nevricos.cpp:12:1: error: stray '\235' in program nevricos.cpp:12:1: error: stray '\' in program nevricos.cpp:12:1: error: stray '\342' in program nevricos.cpp:12:1: error: stray '\200' in program nevricos.cpp:12:1: error: stray '\235' in program nevricos.cpp: In function 'int main()': nevricos.cpp:12:14: error: 'n' was not declared in this scope g<<secv<<”\n”<<subs;return 0;} ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Nevricos 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ă.