Borderou de evaluare (job #2770323)

Utilizator bubblegumixUdrea Robert bubblegumix Data 20 august 2021 15:12:15
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'int query(int)': main.cpp:7:24: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] #define lsb(x) x^(x-1) & x ~~~~~~^~~~ using namespace std; ~~~~~~~~~~~~~~~~~~~~~ int a[NMAX]; ~~~~~~~~~~~~~ int a2[NMAX]; ~~~~~~~~~~~~~~ int a3[NMAX]; ~~~~~~~~~~~~~~ int dp[NMAX]; ~~~~~~~~~~~~~~ int aib[NMAX]; ~~~~~~~~~~~~~~~ int n; ~~~~~~~ ~ ifstream f("scmax.in"); ~~~~~~~~~~~~~~~~~~~~~~~~ ofstream g("scmax.out"); ~~~~~~~~~~~~~~~~~~~~~~~~~ void compressCoord() ~~~~~~~~~~~~~~~~~~~~~ { ~~ set<int> s; ~~~~~~~~~~~~ for (int i = 1; i <= n; i++) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s.insert(a[i]); ~~~~~~~~~~~~~~~~ unordered_map<int, int> hmap; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ int idx = 0; ~~~~~~~~~~~~~ for (auto it : s) ~~~~~~~~~~~~~~~~~~ { ~~ idx++; ~~~~~~~ hmap[it]=idx; ~~~~~~~~~~~~~~ } ~~ for (int i = 1; i <= n; i++) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms262kbCorect!1010
26ms393kbCorect!1010
33ms262kbCorect!1010
44ms262kbCorect!1010
54ms262kbCorect!1010
65ms393kbCorect!1010
75ms393kbCorect!1010
8264ms9998kbCorect!100
9300ms9998kbTime limit exceeded0
10272ms9867kbCorect!10
Punctaj total70

Ceva nu functioneaza?