Pagini recente » Borderou de evaluare (job #269267) | Borderou de evaluare (job #1879371) | Borderou de evaluare (job #217697) | Borderou de evaluare (job #1015749) | Borderou de evaluare (job #2770323)
Borderou de evaluare (job #2770323)
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 |
1 | 3ms | 262kb | Corect! | 10 | 10 |
2 | 6ms | 393kb | Corect! | 10 | 10 |
3 | 3ms | 262kb | Corect! | 10 | 10 |
4 | 4ms | 262kb | Corect! | 10 | 10 |
5 | 4ms | 262kb | Corect! | 10 | 10 |
6 | 5ms | 393kb | Corect! | 10 | 10 |
7 | 5ms | 393kb | Corect! | 10 | 10 |
8 | 264ms | 9998kb | Corect! | 10 | 0 |
9 | 300ms | 9998kb | Time limit exceeded | 0 |
10 | 272ms | 9867kb | Corect! | 10 |
Punctaj total | 70 |