Submission #992726

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
9927262024-06-05 06:24:12KietJTwo Currencies (JOI23_currencies)C++17
100 / 100
1321 ms102620 KiB
#include <bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define sz(x) (int) x.size()
#define all(x) x.begin(), x.end()
typedef long long ll;
typedef pair <int, int> ii;
const int N = 3e5 + 5;
const int mod = 998244353;
struct Bit {
int n; vector <ll> bit;
Bit (int _n): n(_n), bit(_n + 2, 0) {};
void up(int x, int val) {
for(; x <= n; x += (x & -x)) bit[x] += val;
}
ll get(int x) {
ll ans = 0;
for(; x; x -= (x & -x)) ans += bit[x];
return ans;
}
void up_range(int l, int r, int val) {
up(l, val), up(r + 1, -val);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

currencies.cpp: In function 'void para(int, int, std::vector<std::vector<long long int> >&)':
currencies.cpp:102:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  102 |     if (l != r)
      |     ^~
currencies.cpp:103:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  103 |         para(l, m, lose); vector <vector <ll>> ().swap(lose);
      |                           ^~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...