#4460
BossFight
Gimi a găsit un nou joc, faimos pentru dificultatea sa ridicată. Jocul este alcătuit din N
camere, numerotate de la 1
la N
. Fiecare cameră i
conține un monstru a cărui putere este un număr natural P[i]
. Gimi trece, în ordine, prin toate camerele. În fiecare cameră el poate alege să se lupte cu monstrul sau nu. Gimi se întreabă în câte moduri poate să aleagă 3 monștri cu care să se lupte. Două mulțimi de trei monștri se consideră diferite dacă există cel puțin un monstru în prima mulțime care nu aparține celei de-a doua mulțimi. Formal, se cere numărul de tripleți i < j < k
pentru care P[i] < P[j] < P[k]
și P[i] + P[j] + P[k] ≤ S
.
Lot informatică 2023
Problema | BossFight | Operații I/O |
![]() bossfight.in /bossfight.out
|
---|---|---|---|
Limita timp | 0.8 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57686558 | Utilizator | |
Fișier | bossfight.cpp | Dimensiune | 3.27 KB |
Data încărcării | 10 Aprilie 2025, 12:55 | Scor / rezultat | Eroare de compilare |
bossfight.cpp:1:2: error: #error no #error no ^ bossfight.cpp:2:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:2:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:3:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:3:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:4:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:4:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:5:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:5:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:6:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:6:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:7:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:7:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:8:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:8:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:9:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:9:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:10:2: error: #error no #error no ^ bossfight.cpp:11:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:11:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:12:2: error: #error no #error no ^ bossfight.cpp:13:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:13:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:14:2: error: #error no #error no ^ bossfight.cpp:15:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:15:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:16:2: error: #error no #error no ^ bossfight.cpp:17:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:17:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:18:2: error: #error no #error no ^ bossfight.cpp:19:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:19:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:20:2: error: #error no #error no ^ bossfight.cpp:21:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:21:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:22:2: error: #error no #error no ^ bossfight.cpp:23:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:23:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:24:2: error: #error no #error no ^ bossfight.cpp:25:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:25:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:26:2: error: #error no #error no ^ bossfight.cpp:27:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:27:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:28:2: error: #error no #error no ^ bossfight.cpp:29:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:29:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:30:2: error: #error no #error no ^ bossfight.cpp:31:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:31:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:32:2: error: #error no #error no ^ bossfight.cpp:33:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:33:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:34:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:34:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:35:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:35:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:36:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:36:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:37:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:37:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:38:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:38:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:39:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:39:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:40:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:40:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:41:2: error: #error no #error no ^ bossfight.cpp:42:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:42:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:43:2: error: #error no #error no ^ bossfight.cpp:44:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:44:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:45:2: error: #error no #error no ^ bossfight.cpp:46:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:46:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:47:2: error: #error no #error no ^ bossfight.cpp:48:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:48:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:49:2: error: #error no #error no ^ bossfight.cpp:50:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:50:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:51:2: error: #error no #error no ^ bossfight.cpp:52:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:52:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:53:2: error: #error no #error no ^ bossfight.cpp:54:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:54:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:55:2: error: #error no #error no ^ bossfight.cpp:56:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:56:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:57:2: error: #error no #error no ^ bossfight.cpp:58:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:58:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:59:2: error: #error no #error no ^ bossfight.cpp:60:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:60:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:61:2: error: #error no #error no ^ bossfight.cpp:62:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:62:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:63:2: error: #error no #error no ^ bossfight.cpp:64:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:64:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:65:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:65:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:66:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:66:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:67:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:67:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:68:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:68:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:69:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:69:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:70:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:70:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:71:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:71:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:72:2: error: #error no #error no ^ bossfight.cpp:73:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:73:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:74:2: error: #error no #error no ^ bossfight.cpp:75:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:75:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:76:2: error: #error no #error no ^ bossfight.cpp:77:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:77:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:78:2: error: #error no #error no ^ bossfight.cpp:79:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:79:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:80:2: error: #error no #error no ^ bossfight.cpp:81:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:81:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:82:2: error: #error no #error no ^ bossfight.cpp:83:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:83:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:84:2: error: #error no #error no ^ bossfight.cpp:85:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:85:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:86:2: error: #error no #error no ^ bossfight.cpp:87:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:87:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:88:2: error: #error no #error no ^ bossfight.cpp:89:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:89:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:90:2: error: #error no #error no ^ bossfight.cpp:91:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:91:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:92:2: error: #error no #error no ^ bossfight.cpp:93:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:93:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:94:2: error: #error no #error no ^ bossfight.cpp:95:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:95:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:96:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:96:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:97:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:97:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:98:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:98:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:99:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:99:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:100:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:100:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:101:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:101:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:102:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:102:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:103:2: error: #error no #error no ^ bossfight.cpp:104:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:104:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:105:2: error: #error no #error no ^ bossfight.cpp:106:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:106:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:107:2: error: #error no #error no ^ bossfight.cpp:108:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:108:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:109:2: error: #error no #error no ^ bossfight.cpp:110:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:110:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:111:2: error: #error no #error no ^ bossfight.cpp:112:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:112:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:113:2: error: #error no #error no ^ bossfight.cpp:114:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:114:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:115:2: error: #error no #error no ^ bossfight.cpp:116:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:116:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:117:2: error: #error no #error no ^ bossfight.cpp:118:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:118:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:119:2: error: #error no #error no ^ bossfight.cpp:120:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:120:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:121:2: error: #error no #error no ^ bossfight.cpp:122:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:122:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:123:2: error: #error no #error no ^ bossfight.cpp:124:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:124:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:125:2: error: #error no #error no ^ bossfight.cpp:126:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:126:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:127:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:127:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:128:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:128:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:129:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:129:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:130:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:130:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:131:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:131:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:132:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot#error no ^ bossfight.cpp:132:2: error: #error i'm not doing ot#error no #error i'm not doing ot#error no ^ bossfight.cpp:133:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:133:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:134:2: error: #error no #error no ^ bossfight.cpp:135:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:135:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:136:2: error: #error no #error no ^ bossfight.cpp:137:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:137:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:138:2: error: #error no #error no ^ bossfight.cpp:139:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:139:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:140:2: error: #error no #error no ^ bossfight.cpp:141:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:141:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:142:2: error: #error no #error no ^ bossfight.cpp:143:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:143:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:144:2: error: #error no #error no ^ bossfight.cpp:145:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:145:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:146:2: error: #error no #error no ^ bossfight.cpp:147:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:147:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:148:2: error: #error no #error no ^ bossfight.cpp:149:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:149:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:150:2: error: #error no #error no ^ bossfight.cpp:151:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:151:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:152:2: error: #error no #error no ^ bossfight.cpp:153:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:153:2: error: #error i'm not doing ot #error i'm not doing ot ^ bossfight.cpp:154:2: error: #error no #error no ^ bossfight.cpp:155:9: warning: missing terminating ' character [enabled by default] #error i'm not doing ot ^ bossfight.cpp:155:2: error: #error i'm not doing ot #error i'm not doing ot ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema BossFight 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ă.