#3680
1. Se dă un număr natural N
. Determinați cel mai mic număr din intervalul închis [1,N]
care are
număr maxim de divizori proprii.
2. Se dau trei numere N
, M
și T
. Determinați câte intervale de forma [a,b]
au proprietatea că există exact M
numere naturale care au T
divizori proprii.
Concursul Național Info Pro, Etapa II
Problema | numereX | Operații I/O |
![]() numere.in /numere.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56626855 | Utilizator | |
Fișier | numerex.cpp | Dimensiune | 1.19 KB |
Data încărcării | 27 Februarie 2025, 20:10 | Scor / rezultat | Eroare de compilare |
numerex.cpp:2:1: error: stray '\302' in program ^ numerex.cpp:2:1: error: stray '\240' in program numerex.cpp:10:1: error: stray '\302' in program for(int i=2;i<=100000;i++){ ^ numerex.cpp:10:1: error: stray '\240' in program numerex.cpp:10:1: error: stray '\302' in program numerex.cpp:10:1: error: stray '\240' in program numerex.cpp:11:1: error: stray '\302' in program for(int j=2*i;j<=100000;j+=i){ ^ numerex.cpp:11:1: error: stray '\240' in program numerex.cpp:11:1: error: stray '\302' in program numerex.cpp:11:1: error: stray '\240' in program numerex.cpp:11:1: error: stray '\302' in program numerex.cpp:11:1: error: stray '\240' in program numerex.cpp:11:1: error: stray '\302' in program numerex.cpp:11:1: error: stray '\240' in program numerex.cpp:12:1: error: stray '\302' in program nrDiv[j]++; ^ numerex.cpp:12:1: error: stray '\240' in program numerex.cpp:12:1: error: stray '\302' in program numerex.cpp:12:1: error: stray '\240' in program numerex.cpp:12:1: error: stray '\302' in program numerex.cpp:12:1: error: stray '\240' in program numerex.cpp:12:1: error: stray '\302' in program numerex.cpp:12:1: error: stray '\240' in program numerex.cpp:12:1: error: stray '\302' in program numerex.cpp:12:1: error: stray '\240' in program numerex.cpp:12:1: error: stray '\302' in program numerex.cpp:12:1: error: stray '\240' in program numerex.cpp:13:1: error: stray '\302' in program } ^ numerex.cpp:13:1: error: stray '\240' in program numerex.cpp:13:1: error: stray '\302' in program numerex.cpp:13:1: error: stray '\240' in program numerex.cpp:13:1: error: stray '\302' in program numerex.cpp:13:1: error: stray '\240' in program numerex.cpp:13:1: error: stray '\302' in program numerex.cpp:13:1: error: stray '\240' in program numerex.cpp:14:1: error: stray '\302' in program } ^ numerex.cpp:14:1: error: stray '\240' in program numerex.cpp:14:1: error: stray '\302' in program numerex.cpp:14:1: error: stray '\240' in program numerex.cpp:17:1: error: stray '\302' in program precalcDiv(); ^ numerex.cpp:17:1: error: stray '\240' in program numerex.cpp:17:1: error: stray '\302' in program numerex.cpp:17:1: error: stray '\240' in program numerex.cpp:18:1: error: stray '\302' in program cin>>cerinta; ^ numerex.cpp:18:1: error: stray '\240' in program numerex.cpp:18:1: error: stray '\302' in program numerex.cpp:18:1: error: stray '\240' in program numerex.cpp:19:1: error: stray '\302' in program if(cerinta == 1){ ^ numerex.cpp:19:1: error: stray '\240' in program numerex.cpp:19:1: error: stray '\302' in program numerex.cpp:19:1: error: stray '\240' in program numerex.cpp:20:1: error: stray '\302' in program cin>>N; ^ numerex.cpp:20:1: error: stray '\240' in program numerex.cpp:20:1: error: stray '\302' in program numerex.cpp:20:1: error: stray '\240' in program numerex.cpp:20:1: error: stray '\302' in program numerex.cpp:20:1: error: stray '\240' in program numerex.cpp:20:1: error: stray '\302' in program numerex.cpp:20:1: error: stray '\240' in program numerex.cpp:21:1: error: stray '\302' in program int mxdiv = -1,answer = -1; ^ numerex.cpp:21:1: error: stray '\240' in program numerex.cpp:21:1: error: stray '\302' in program numerex.cpp:21:1: error: stray '\240' in program numerex.cpp:21:1: error: stray '\302' in program numerex.cpp:21:1: error: stray '\240' in program numerex.cpp:21:1: error: stray '\302' in program numerex.cpp:21:1: error: stray '\240' in program numerex.cpp:22:1: error: stray '\302' in program for(int i=1;i<=N;i++){ ^ numerex.cpp:22:1: error: stray '\240' in program numerex.cpp:22:1: error: stray '\302' in program numerex.cpp:22:1: error: stray '\240' in program numerex.cpp:22:1: error: stray '\302' in program numerex.cpp:22:1: error: stray '\240' in program numerex.cpp:22:1: error: stray '\302' in program numerex.cpp:22:1: error: stray '\240' in program numerex.cpp:23:1: error: stray '\302' in program if(nrDiv[i] > mxdiv){ ^ numerex.cpp:23:1: error: stray '\240' in program numerex.cpp:23:1: error: stray '\302' in program numerex.cpp:23:1: error: stray '\240' in program numerex.cpp:23:1: error: stray '\302' in program numerex.cpp:23:1: error: stray '\240' in program numerex.cpp:23:1: error: stray '\302' in program numerex.cpp:23:1: error: stray '\240' in program numerex.cpp:23:1: error: stray '\302' in program numerex.cpp:23:1: error: stray '\240' in program numerex.cpp:23:1: error: stray '\302' in program numerex.cpp:23:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program mxdiv = nrDiv[i]; ^ numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:24:1: error: stray '\302' in program numerex.cpp:24:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program answer = i; ^ numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:25:1: error: stray '\302' in program numerex.cpp:25:1: error: stray '\240' in program numerex.cpp:26:1: error: stray '\302' in program } ^ numerex.cpp:26:1: error: stray '\240' in program numerex.cpp:26:1: error: stray '\302' in program numerex.cpp:26:1: error: stray '\240' in program numerex.cpp:26:1: error: stray '\302' in program numerex.cpp:26:1: error: stray '\240' in program numerex.cpp:26:1: error: stray '\302' in program numerex.cpp:26:1: error: stray '\240' in program numerex.cpp:26:1: error: stray '\302' in program numerex.cpp:26:1: error: stray '\240' in program numerex.cpp:26:1: error: stray '\302' in program numerex.cpp:26:1: error: stray '\240' in program numerex.cpp:27:1: error: stray '\302' in program } ^ numerex.cpp:27:1: error: stray '\240' in program numerex.cpp:27:1: error: stray '\302' in program numerex.cpp:27:1: error: stray '\240' in program numerex.cpp:27:1: error: stray '\302' in program numerex.cpp:27:1: error: stray '\240' in program numerex.cpp:27:1: error: stray '\302' in program numerex.cpp:27:1: error: stray '\240' in program numerex.cpp:28:1: error: stray '\302' in program cout<<answer<<'\n'; ^ numerex.cpp:28:1: error: stray '\240' in program numerex.cpp:28:1: error: stray '\302' in program numerex.cpp:28:1: error: stray '\240' in program numerex.cpp:28:1: error: stray '\302' in program numerex.cpp:28:1: error: stray '\240' in program numerex.cpp:28:1: error: stray '\302' in program numerex.cpp:28:1: error: stray '\240' in program numerex.cpp:29:1: error: stray '\302' in program } ^ numerex.cpp:29:1: error: stray '\240' in program numerex.cpp:29:1: error: stray '\302' in program numerex.cpp:29:1: error: stray '\240' in program numerex.cpp:30:1: error: stray '\302' in program else{ ^ numerex.cpp:30:1: error: stray '\240' in program numerex.cpp:30:1: error: stray '\302' in program numerex.cpp:30:1: error: stray '\240' in program numerex.cpp:31:1: error: stray '\302' in program cin>>N>>M>>T; ^ numerex.cpp:31:1: error: stray '\240' in program numerex.cpp:31:1: error: stray '\302' in program numerex.cpp:31:1: error: stray '\240' in program numerex.cpp:31:1: error: stray '\302' in program numerex.cpp:31:1: error: stray '\240' in program numerex.cpp:31:1: error: stray '\302' in program numerex.cpp:31:1: error: stray '\240' in program numerex.cpp:32:1: error: stray '\302' in program long long subsecvente = 0; ^ numerex.cpp:32:1: error: stray '\240' in program numerex.cpp:32:1: error: stray '\302' in program numerex.cpp:32:1: error: stray '\240' in program numerex.cpp:32:1: error: stray '\302' in program numerex.cpp:32:1: error: stray '\240' in program numerex.cpp:32:1: error: stray '\302' in program numerex.cpp:32:1: error: stray '\240' in program numerex.cpp:33:1: error: stray '\302' in program for(int i=1;i<=N;i++){ ^ numerex.cpp:33:1: error: stray '\240' in program numerex.cpp:33:1: error: stray '\302' in program numerex.cpp:33:1: error: stray '\240' in program numerex.cpp:33:1: error: stray '\302' in program numerex.cpp:33:1: error: stray '\240' in program numerex.cpp:33:1: error: stray '\302' in program numerex.cpp:33:1: error: stray '\240' in program numerex.cpp:34:1: error: stray '\302' in program if(nrDiv[i] == T){ ^ numerex.cpp:34:1: error: stray '\240' in program numerex.cpp:34:1: error: stray '\302' in program numerex.cpp:34:1: error: stray '\240' in program numerex.cpp:34:1: error: stray '\302' in program numerex.cpp:34:1: error: stray '\240' in program numerex.cpp:34:1: error: stray '\302' in program numerex.cpp:34:1: error: stray '\240' in program numerex.cpp:34:1: error: stray '\302' in program numerex.cpp:34:1: error: stray '\240' in program numerex.cpp:34:1: error: stray '\302' in program numerex.cpp:34:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program ones[++cntones] = i; ^ numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:35:1: error: stray '\302' in program numerex.cpp:35:1: error: stray '\240' in program numerex.cpp:36:1: error: stray '\302' in program } ^ numerex.cpp:36:1: error: stray '\240' in program numerex.cpp:36:1: error: stray '\302' in program numerex.cpp:36:1: error: stray '\240' in program numerex.cpp:36:1: error: stray '\302' in program numerex.cpp:36:1: error: stray '\240' in program numerex.cpp:36:1: error: stray '\302' in program numerex.cpp:36:1: error: stray '\240' in program numerex.cpp:36:1: error: stray '\302' in program numerex.cpp:36:1: error: stray '\240' in program numerex.cpp:36:1: error: stray '\302' in program numerex.cpp:36:1: error: stray '\240' in program numerex.cpp:37:1: error: stray '\302' in program if(cntones >= M){ ^ numerex.cpp:37:1: error: stray '\240' in program numerex.cpp:37:1: error: stray '\302' in program numerex.cpp:37:1: error: stray '\240' in program numerex.cpp:37:1: error: stray '\302' in program numerex.cpp:37:1: error: stray '\240' in program numerex.cpp:37:1: error: stray '\302' in program numerex.cpp:37:1: error: stray '\240' in program numerex.cpp:37:1: error: stray '\302' in program numerex.cpp:37:1: error: stray '\240' in program numerex.cpp:37:1: error: stray '\302' in program numerex.cpp:37:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program int p1 = ones[cntones - M]; ^ numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:38:1: error: stray '\302' in program numerex.cpp:38:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program int p2 = ones[cntones - M + 1]; ^ numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:39:1: error: stray '\302' in program numerex.cpp:39:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program subsecvente += p2 - p1; ^ numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:40:1: error: stray '\302' in program numerex.cpp:40:1: error: stray '\240' in program numerex.cpp:41:1: error: stray '\302' in program } ^ numerex.cpp:41:1: error: stray '\240' in program numerex.cpp:41:1: error: stray '\302' in program numerex.cpp:41:1: error: stray '\240' in program numerex.cpp:41:1: error: stray '\302' in program numerex.cpp:41:1: error: stray '\240' in program numerex.cpp:41:1: error: stray '\302' in program numerex.cpp:41:1: error: stray '\240' in program numerex.cpp:41:1: error: stray '\302' in program numerex.cpp:41:1: error: stray '\240' in program numerex.cpp:41:1: error: stray '\302' in program numerex.cpp:41:1: error: stray '\240' in program numerex.cpp:42:1: error: stray '\302' in program ^ numerex.cpp:42:1: error: stray '\240' in program numerex.cpp:43:1: error: stray '\302' in program } ^ numerex.cpp:43:1: error: stray '\240' in program numerex.cpp:43:1: error: stray '\302' in program numerex.cpp:43:1: error: stray '\240' in program numerex.cpp:43:1: error: stray '\302' in program numerex.cpp:43:1: error: stray '\240' in program numerex.cpp:43:1: error: stray '\302' in program numerex.cpp:43:1: error: stray '\240' in program numerex.cpp:44:1: error: stray '\302' in program cout<<subsecvente<<'\n'; ^ numerex.cpp:44:1: error: stray '\240' in program numerex.cpp:44:1: error: stray '\302' in program numerex.cpp:44:1: error: stray '\240' in program numerex.cpp:44:1: error: stray '\302' in program numerex.cpp:44:1: error: stray '\240' in program numerex.cpp:44:1: error: stray '\302' in program numerex.cpp:44:1: error: stray '\240' in program numerex.cpp:45:1: error: stray '\302' in program } ^ numerex.cpp:45:1: error: stray '\240' in program numerex.cpp:45:1: error: stray '\302' in program numerex.cpp:45:1: error: stray '\240' in program numerex.cpp:46:1: error: stray '\302' in program ^ numerex.cpp:46:1: error: stray '\240' in program numerex.cpp:47:1: error: stray '\302' in program ^ numerex.cpp:47:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema numereX 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ă.