#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 | #22588309 | Utilizator | |
Fișier | nevricos.cpp | Dimensiune | 482 B |
Data încărcării | 24 Aprilie 2020, 15:07 | Scor / rezultat | Eroare de compilare |
nevricos.cpp:5:1: error: stray '\342' in program ifstream f(“nevricos.in”); ^ nevricos.cpp:5:1: error: stray '\200' in program nevricos.cpp:5:1: error: stray '\234' in program nevricos.cpp:5:1: error: stray '\342' in program nevricos.cpp:5:1: error: stray '\200' in program nevricos.cpp:5:1: error: stray '\235' in program nevricos.cpp:6:1: error: stray '\342' in program ofstream g(“nevricos.out”); ^ nevricos.cpp:6:1: error: stray '\200' in program nevricos.cpp:6:1: error: stray '\234' in program nevricos.cpp:6:1: error: stray '\342' in program nevricos.cpp:6:1: error: stray '\200' in program nevricos.cpp:6:1: error: stray '\235' in program nevricos.cpp:12:1: error: stray '\342' in program { secv=subs=de1=de2=0; ant=‘0’; while(f>>a) { ^ nevricos.cpp:12:1: error: stray '\200' in program nevricos.cpp:12:1: error: stray '\230' 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 '\231' in program nevricos.cpp:15: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:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\230' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\231' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\230' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\231' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\230' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\231' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\230' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\231' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\230' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\231' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\230' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\231' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\230' in program nevricos.cpp:15:1: error: stray '\342' in program nevricos.cpp:15:1: error: stray '\200' in program nevricos.cpp:15:1: error: stray '\231' in program nevricos.cpp:18:1: error: stray '\342' in program if (a==‘4’) { subs+=de2; } ant=a; } ^ nevricos.cpp:18:1: error: stray '\200' in program nevricos.cpp:18:1: error: stray '\230' in program nevricos.cpp:18:1: error: stray '\342' in program nevricos.cpp:18:1: error: stray '\200' in program nevricos.cpp:18:1: error: stray '\231' in program nevricos.cpp:20:1: error: stray '\342' in program g<<secv<<”\n”<<subs; return 0; } ^ nevricos.cpp:20:1: error: stray '\200' in program nevricos.cpp:20:1: error: stray '\235' in program nevricos.cpp:20:1: error: stray '\' in program nevricos.cpp:20:1: error: stray '\342' in program nevricos.cpp:20:1: error: stray '\200' in program nevricos.cpp:20:1: error: stray '\235' in program nevricos.cpp:5:15: error: 'nevricos' was not declared in this scope ifstream f(“nevricos.in”); ^ nevricos.cpp:6:15: error: 'nevricos' was not declared in this scope ofstream g(“nevricos.out”); ^ nevricos.cpp: In function 'int main()': nevricos.cpp:20: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ă.