fix(codeforces): cleanup
This commit is contained in:
parent
dc46462a62
commit
36120f2cec
9 changed files with 0 additions and 194 deletions
|
|
@ -1,9 +0,0 @@
|
||||||
BasedOnStyle: Google
|
|
||||||
AllowShortBlocksOnASingleLine: false
|
|
||||||
AllowShortCaseLabelsOnASingleLine: false
|
|
||||||
AllowShortCompoundRequirementOnASingleLine: false
|
|
||||||
AllowShortEnumsOnASingleLine: false
|
|
||||||
AllowShortFunctionsOnASingleLine: false
|
|
||||||
AllowShortIfStatementsOnASingleLine: false
|
|
||||||
AllowShortLambdasOnASingleLine: false
|
|
||||||
AllowShortLoopsOnASingleLine: false
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
CompileFlags:
|
|
||||||
Add:
|
|
||||||
- -std=c++20
|
|
||||||
- -Wall
|
|
||||||
- -Wextra
|
|
||||||
- -Wpedantic
|
|
||||||
- -Wshadow
|
|
||||||
- -Wno-unknown-pragmas
|
|
||||||
|
|
@ -1,88 +0,0 @@
|
||||||
#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;
|
|
||||||
|
|
||||||
template <typename... Args>
|
|
||||||
void dbg(std::string const &str, Args &&...args) {
|
|
||||||
std::cout << std::vformat(str, std::make_format_args(args...));
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
void dbg(T const &t) {
|
|
||||||
std::cout << t;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <std::ranges::range T>
|
|
||||||
void dbgln(T const &t) {
|
|
||||||
if constexpr (std::is_convertible_v<T, char const *>) {
|
|
||||||
std::cout << t << '\n';
|
|
||||||
} else {
|
|
||||||
for (auto const &e : t) {
|
|
||||||
std::cout << e << ' ';
|
|
||||||
}
|
|
||||||
std::cout << '\n';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void dbgln() {
|
|
||||||
std::cout << '\n';
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename... Args>
|
|
||||||
void dbgln(std::string const &str, Args &&...args) {
|
|
||||||
dbg(str, std::forward<Args>(args)...);
|
|
||||||
cout << '\n';
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
void dbgln(T const &t) {
|
|
||||||
dbg(t);
|
|
||||||
cout << '\n';
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
constexpr T MIN = std::numeric_limits<T>::min();
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
constexpr T MAX = std::numeric_limits<T>::max();
|
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
static T sc(auto &&x) {
|
|
||||||
return static_cast<T>(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define ff first
|
|
||||||
#define ss second
|
|
||||||
#define eb emplace_back
|
|
||||||
#define ll long long
|
|
||||||
#define ld long double
|
|
||||||
#define vec vector
|
|
||||||
#define endl '\n'
|
|
||||||
|
|
||||||
#define all(x) (x).begin(), (x).end()
|
|
||||||
#define rall(x) (r).rbegin(), (x).rend()
|
|
||||||
#define sz(x) static_cast<int>((x).size())
|
|
||||||
#define FOR(a, b, c) for (int(a) = (b); (a) < (c); ++(a))
|
|
||||||
#define ROF(a, b, c) for (int(a) = (b); (a) > (c); --(a))
|
|
||||||
|
|
||||||
void solve() {
|
|
||||||
dbgln("hi")
|
|
||||||
}
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
cin.tie(nullptr)->sync_with_stdio(false);
|
|
||||||
|
|
||||||
int t = 1;
|
|
||||||
cin >> t;
|
|
||||||
|
|
||||||
while (t--) {
|
|
||||||
solve();
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
1
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
a.cc: In function ‘void solve()’:
|
|
||||||
a.cc:74:14: error: expected ‘;’ before ‘}’ token
|
|
||||||
74 | dbgln("hi")
|
|
||||||
| ^
|
|
||||||
| ;
|
|
||||||
75 | }
|
|
||||||
| ~
|
|
||||||
|
|
||||||
[code]: 1
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
#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;
|
|
||||||
|
|
||||||
template <typename... Args> void dbg(std::string const &str, Args &&...args) {
|
|
||||||
std::cout << std::vformat(str, std::make_format_args(args...));
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T> void dbg(T const &t) { std::cout << t; }
|
|
||||||
|
|
||||||
template <std::ranges::range T> void dbgln(T const &t) {
|
|
||||||
if constexpr (std::is_convertible_v<T, char const *>) {
|
|
||||||
std::cout << t << '\n';
|
|
||||||
} else {
|
|
||||||
for (auto const &e : t) {
|
|
||||||
std::cout << e << ' ';
|
|
||||||
}
|
|
||||||
std::cout << '\n';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void dbgln() { std::cout << '\n'; }
|
|
||||||
|
|
||||||
template <typename... Args> void dbgln(std::string const &str, Args &&...args) {
|
|
||||||
dbg(str, std::forward<Args>(args)...);
|
|
||||||
cout << '\n';
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T> void dbgln(T const &t) {
|
|
||||||
dbg(t);
|
|
||||||
cout << '\n';
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T> constexpr T MIN = std::numeric_limits<T>::min();
|
|
||||||
|
|
||||||
template <typename T> constexpr T MAX = std::numeric_limits<T>::max();
|
|
||||||
|
|
||||||
template <typename T> static T sc(auto &&x) { return static_cast<T>(x); }
|
|
||||||
|
|
||||||
#define ff first
|
|
||||||
#define ss second
|
|
||||||
#define eb emplace_back
|
|
||||||
#define ll long long
|
|
||||||
#define ld long double
|
|
||||||
#define vec vector
|
|
||||||
#define endl '\n'
|
|
||||||
|
|
||||||
#define all(x) (x).begin(), (x).end()
|
|
||||||
#define rall(x) (r).rbegin(), (x).rend()
|
|
||||||
#define sz(x) static_cast<int>((x).size())
|
|
||||||
#define FOR(a, b, c) for (int(a) = (b); (a) < (c); ++(a))
|
|
||||||
#define ROF(a, b, c) for (int(a) = (b); (a) > (c); --(a))
|
|
||||||
|
|
||||||
void solve() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
cin.tie(nullptr)->sync_with_stdio(false);
|
|
||||||
|
|
||||||
int t = 1;
|
|
||||||
cin >> t;
|
|
||||||
|
|
||||||
while (t--) {
|
|
||||||
solve();
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
-std=c++20
|
|
||||||
-Wall
|
|
||||||
-Wextra
|
|
||||||
-Wpedantic
|
|
||||||
-Wshadow
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue