feat(codeforces): 1017
This commit is contained in:
parent
375a673932
commit
f366180f50
31 changed files with 857 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ void solve() {
|
|||
if (a[l] == 0) {
|
||||
continue;
|
||||
}
|
||||
// NOTE: while loop instead of maintaing invariant
|
||||
// NOTE: i wrote a while loop instead of maintaing invariant
|
||||
++r;
|
||||
while (r < n && a[r] == 0) {
|
||||
++r;
|
||||
|
|
|
|||
39
codeforces/799/h.cc
Normal file
39
codeforces/799/h.cc
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#include <bits/stdc++.h> // {{{
|
||||
|
||||
// https://codeforces.com/blog/entry/96344
|
||||
|
||||
#pragma GCC optimize("O2,unroll-loops")
|
||||
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
|
||||
|
||||
using namespace std;
|
||||
|
||||
#define prln(...) std::println(__VA_ARGS__)
|
||||
#define pr(...) std::print(__VA_ARGS__)
|
||||
|
||||
#ifdef LOCAL
|
||||
#define dbgln(...) std::println(__VA_ARGS__)
|
||||
#define dbg(...) std::print(__VA_ARGS__)
|
||||
#else
|
||||
#define dbgln(...)
|
||||
#define dbg(...)
|
||||
#endif
|
||||
// }}}
|
||||
|
||||
void solve() {
|
||||
|
||||
}
|
||||
|
||||
int main() { // {{{
|
||||
cin.tie(nullptr)->sync_with_stdio(false);
|
||||
cin.exceptions(cin.failbit);
|
||||
|
||||
int tc = 1;
|
||||
cin >> tc;
|
||||
|
||||
for (int t = 0; t < tc; ++t) {
|
||||
solve();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
// }}}
|
||||
0
codeforces/799/h.in
Normal file
0
codeforces/799/h.in
Normal file
Loading…
Add table
Add a link
Reference in a new issue