Pagini recente » Borderou de evaluare (job #2417879) | Borderou de evaluare (job #41256) | Borderou de evaluare (job #651739) | Borderou de evaluare (job #2548107) | Borderou de evaluare (job #2560977)
Borderou de evaluare (job #2560977)
Raport evaluator
Compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:5:26: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
#define zeros(x) (x^(x-1)&x)
~~~~~^~~~
using namespace std;
~~~~~~~~~~~~~~~~~~~~~
ifstream f("scmax.in");
~~~~~~~~~~~~~~~~~~~~~~~~
ofstream g("scmax.out");
~~~~~~~~~~~~~~~~~~~~~~~~~
~
int n, i, h = 1, v[100010], AIB[100010], lst[100010], D[100010], up[100010], bst;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
void update(int x, int ind)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
for (int i = x; i <= n; i += zeros(i))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:14:34: note: in expansion of macro 'zeros'
for (int i = x; i <= n; i += zeros(i))
^~~~~
main.cpp: In function 'int query(int)':
main.cpp:5:26: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
#define zeros(x) (x^(x-1)&x)
~~~~~^~~~
using namespace std;
~~~~~~~~~~~~~~~~~~~~~
ifstream f("scmax.in");
~~~~~~~~~~~~~~~~~~~~~~~~
ofstream g("scmax.out");
~~~~~~~~~~~~~~~~~~~~~~~~~
~
int n, i, h = 1, v[100010], AIB[100010], lst[100010], D[100010], up[100010], bst;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
void update(int x, int ind)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
for (int i = x; i <= n; i += zeros(i))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (D[ind] > D[AIB[i]])
~~~~~~~~~~~~~~~~~~~~~~~~
AIB[i] = ind;
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | Subsir incorect! | 5 | 5 |
2 | 4ms | 262kb | Subsir incorect! | 5 | 5 |
3 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
4 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
5 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
6 | 3ms | 131kb | Subsir incorect! | 5 | 5 |
7 | 4ms | 131kb | Subsir incorect! | 5 | 5 |
8 | 107ms | 2097kb | Subsir incorect! | 5 | 0 |
9 | 303ms | 1310kb | Time limit exceeded | 0 |
10 | 104ms | 2097kb | Subsir incorect! | 5 |
Punctaj total | 35 |