#3003
Intersectie
Pe un cerc sunt așezate echidistant N
puncte, etichetate în sensul acelor de ceas cu 1
, 2
, 3
, …, N
.
Se dau M
intervale de forma [a, b]
și T
interogări de forma P Q
.
Pentru fiecare interogare [P, Q]
să se verifice dacă este adevărat sau fals că intersecția tuturor intervalelor care au puncte comune cu [P, Q]
include intervalul [P, Q]
.
Info Oltenia 2019
Problema | Intersectie | Operații I/O |
intersectie.in /intersectie.out
|
---|---|---|---|
Limita timp | 0.11 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #46205306 | Utilizator | |
Fișier | intersectie.cpp | Dimensiune | 1.89 KB |
Data încărcării | 07 Noiembrie 2023, 09:57 | Scor / rezultat | 0 puncte |
intersectie.cpp: In function 'int incmax(int, int, int)': intersectie.cpp:33:9: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] int mij; ^ intersectie.cpp: In function 'int sfmin(int, int, int)': intersectie.cpp:59:17: warning: 'mij' is used uninitialized in this function [-Wuninitialized] return y[mij]; ^ intersectie.cpp: In function 'int main()': intersectie.cpp:33:9: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] int mij; ^ intersectie.cpp:59:17: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] return y[mij]; ^ intersectie.cpp:49:9: note: 'mij' was declared here int mij; ^ intersectie.cpp:33:9: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] int mij; ^ intersectie.cpp:59:17: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] return y[mij]; ^ intersectie.cpp:49:9: note: 'mij' was declared here int mij; ^ intersectie.cpp:59:17: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] return y[mij]; ^ intersectie.cpp:49:9: note: 'mij' was declared here int mij; ^ intersectie.cpp:44:17: warning: 'mij' may be used uninitialized in this function [-Wmaybe-uninitialized] return x[mij]; ^ intersectie.cpp:33:9: note: 'mij' was declared here int mij; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | Depășit | Limita de timp depășită | 10 | 0 | ||
2 | Depășit | Limita de timp depășită | 10 | 0 | ||
3 | Depășit | Limita de timp depășită | 10 | 0 | ||
4 | 0.02 secunde | Caught fatal signal 11 | 10 | 0 | ||
5 | 0.02 secunde | Caught fatal signal 11 | 10 | 0 | ||
6 | 0.02 secunde | Caught fatal signal 11 | 10 | 0 | ||
7 | 0.024 secunde | Caught fatal signal 11 | 10 | 0 | ||
8 | 0.024 secunde | Caught fatal signal 11 | 10 | 0 | ||
9 | 0.024 secunde | Caught fatal signal 11 | 10 | 0 | ||
10 | 0.024 secunde | Caught fatal signal 11 | 10 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Intersectie 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ă.