Submission #155855

#TimeUsernameProblemLanguageResultExecution timeMemory
155855oolimryJousting tournament (IOI12_tournament)C++14
0 / 100
16 ms760 KiB
#include <bits/stdc++.h> using namespace std; int tree[200005]; int n; void update(int i, int x){ i += n; while(i > 0){ tree[i] += x; i >>= 1; } } int query(int l, int r){ int ans = 0; for(l += n,r += n;l < r;l >>= 1, r >>= 1){ if(l&1){ ans += tree[l]; l++; } if(r&1){ r--; ans += tree[r]; } } return ans; } int tree2[200005]; int GetBestPosition(int N, int C, int R, int *K, int *S, int *E) { return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...