# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
321593 | CaroLinda | Bubble Sort 2 (JOI18_bubblesort2) | C++14 | 5015 ms | 110408 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "bubblesort2.h"
#define sz(x) (int)(x.size() )
#define all(x) x.begin(),x.end()
const int MAX = 1e6+10 ;
const int inf = 1e8+10 ;
using namespace std ;
int Key ;
struct Tree
{
int tree[MAX*4] ;
int lz[MAX*4] ;
int m(int l, int r ) { return (l+r)>>1 ; }
void refresh(int pos, int l, int r )
{
tree[pos] += lz[pos] ;
if( l == r ) return (void)(lz[pos] = 0 ) ;
lz[pos<<1] += lz[pos] ;
lz[pos<<1|1] += lz[pos] ;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |