#1262
subsecv
Se dau n
numere naturale. Să se găsească o subsecvență astfel încât suma elementelor din această subsecvență să fie divizibilă cu n
.
Problema | subsecv | Operații I/O |
subsecv.in /subsecv.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #54391332 | Utilizator | |
Fișier | subsecv.cpp | Dimensiune | 734 B |
Data încărcării | 27 Noiembrie 2024, 12:33 | Scor / rezultat | Eroare de compilare |
subsecv.cpp:5:1: error: stray '\342' in program Ifstream fin(„subsecv.in”); ^ subsecv.cpp:5:1: error: stray '\200' in program subsecv.cpp:5:1: error: stray '\236' in program subsecv.cpp:5:1: error: stray '\342' in program subsecv.cpp:5:1: error: stray '\200' in program subsecv.cpp:5:1: error: stray '\235' in program subsecv.cpp:7:1: error: stray '\342' in program Ofstream fout(„subsecv.out”); ^ subsecv.cpp:7:1: error: stray '\200' in program subsecv.cpp:7:1: error: stray '\236' in program subsecv.cpp:7:1: error: stray '\342' in program subsecv.cpp:7:1: error: stray '\200' in program subsecv.cpp:7:1: error: stray '\235' in program subsecv.cpp:23:9: error: stray '\342' in program A[i] = (a[i – 1] + x % n) % n; ^ subsecv.cpp:23:9: error: stray '\200' in program subsecv.cpp:23:9: error: stray '\223' in program subsecv.cpp:31:13: error: stray '\342' in program If((a[j] – a[i – 1]) == 0) ^ subsecv.cpp:31:13: error: stray '\200' in program subsecv.cpp:31:13: error: stray '\223' in program subsecv.cpp:31:13: error: stray '\342' in program subsecv.cpp:31:13: error: stray '\200' in program subsecv.cpp:31:13: error: stray '\223' in program subsecv.cpp:47:7: error: stray '\342' in program Fout << st << ‚ ‚ << dr; ^ subsecv.cpp:47:7: error: stray '\200' in program subsecv.cpp:47:7: error: stray '\232' in program subsecv.cpp:47:7: error: stray '\342' in program subsecv.cpp:47:7: error: stray '\200' in program subsecv.cpp:47:7: error: stray '\232' in program subsecv.cpp:51:7: error: stray '\342' in program Fout << „Nu exista”; ^ subsecv.cpp:51:7: error: stray '\200' in program subsecv.cpp:51:7: error: stray '\236' in program subsecv.cpp:51:7: error: stray '\342' in program subsecv.cpp:51:7: error: stray '\200' in program subsecv.cpp:51:7: error: stray '\235' in program subsecv.cpp:3:1: error: 'Using' does not name a type Using namespace std; ^ subsecv.cpp:5:1: error: 'Ifstream' does not name a type Ifstream fin(„subsecv.in”); ^ subsecv.cpp:7:1: error: 'Ofstream' does not name a type Ofstream fout(„subsecv.out”); ^ subsecv.cpp:9:1: error: 'Int' does not name a type Int n , x , a[10005] , st , dr , ok; ^ subsecv.cpp:11:1: error: 'Int' does not name a type Int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema subsecv 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ă.