Pagini recente » Borderou de evaluare (job #2171053) | Borderou de evaluare (job #1217321) | Borderou de evaluare (job #1781532) | Borderou de evaluare (job #1364655) | Borderou de evaluare (job #2190780)
Borderou de evaluare (job #2190780)
Raport evaluator
Compilare:
user.cpp: In function ‘void aib_add(int, int)’:
user.cpp:2:25: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) x^(x-1)&x
~~~~~^~~
#define Vmax 1000000006
~~~~~~~~~~~~~~~~~~~~~~~~
#define oo (int)-1e9
~~~~~~~~~~~~~~~~~~~~~
using namespace std;
~~~~~~~~~~~~~~~~~~~~~
~
ifstream f("brasov.in");
~~~~~~~~~~~~~~~~~~~~~~~~~
ofstream g("brasov.out");
~~~~~~~~~~~~~~~~~~~~~~~~~~
~
int n,q,a,b,nrM;
~~~~~~~~~~~~~~~~~
string type;
~~~~~~~~~~~~~
map<int,int> AIB;
~~~~~~~~~~~~~~~~~~
~
struct interval{
~~~~~~~~~~~~~~~~~
int a,b;
~~~~~~~~~
bool operator < (const interval &oth) const{
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
return a!=oth.a ? a<oth.a : b<oth.b;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}
~~
};
~~~
set<interval> S;
~~~~~~~~~~~~~~~~~
multiset<int> D;
~~~~~~~~~~~~~~~~~
map<int,int> LG;
~~~~~~~~~~~~~~~~~
~
void aib_add(int pos,int val){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for (int i=pos+3;i<=Vmax;i+=zeros(i)) AIB[i] += val;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 1424ms | 3620kb | Incorect | 0 | 0 |
2 | 1220ms | 5284kb | Incorect | 0 |
3 | 1520ms | 6040kb | Incorect | 0 |
4 | 3144ms | 15388kb | Incorect | 0 |
5 | 1304ms | 9152kb | Incorect | 0 |
6 | 904ms | 6652kb | Incorect | 0 |
7 | 1680ms | 9352kb | Incorect | 0 |
8 | 1372ms | 4756kb | Incorect | 0 |
9 | 2596ms | 25616kb | Incorect | 0 |
10 | 1096ms | 7608kb | Incorect | 0 |
Punctaj total | 0 |