From a9db4aab4257c8651dec7a3b8b0716dc472afddf Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Thu, 7 Sep 2023 20:52:42 +0300 Subject: Solved 4 problems in the last div3(Round895) and deleted binaries --- codeforces/SerejaAndSuffixes/main | Bin 38312 -> 35400 bytes codeforces/SerejaAndSuffixes/main.cpp | 32 ++++++++++++-------------------- 2 files changed, 12 insertions(+), 20 deletions(-) (limited to 'codeforces/SerejaAndSuffixes') diff --git a/codeforces/SerejaAndSuffixes/main b/codeforces/SerejaAndSuffixes/main index e8e8408..e2b9b8a 100755 Binary files a/codeforces/SerejaAndSuffixes/main and b/codeforces/SerejaAndSuffixes/main differ diff --git a/codeforces/SerejaAndSuffixes/main.cpp b/codeforces/SerejaAndSuffixes/main.cpp index c14fd91..fb52f0c 100755 --- a/codeforces/SerejaAndSuffixes/main.cpp +++ b/codeforces/SerejaAndSuffixes/main.cpp @@ -1,4 +1,4 @@ -#include +#include using namespace std; using ll = long long; @@ -10,7 +10,7 @@ using mpii = map; using mpll = map; using db = long double; -#define pb push_back +#define pb push_back #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define lb lower_bound @@ -21,17 +21,15 @@ const db PI = acos((db)-1); const int dx[4]{1, 0, -1, 0}; const int dy[4]{0, 1, 0, -1}; -//pretty printing -template -void printm(const map &mp) { +// pretty printing +template void printm(const map &mp) { cerr << "{" << endl; for (auto p : mp) { cerr << " { " << p.first << " : " << p.second << " }\n"; } cerr << "}" << endl; } -template -void printv(const vector &v) { +template void printv(const vector &v) { cerr << "["; for (int i = 0; i < v.size(); i++) { if (i == v.size() - 1) { @@ -43,8 +41,7 @@ void printv(const vector &v) { cerr << "]\n"; } -template -void printvv(const vector> &v) { +template void printvv(const vector> &v) { cerr << "[\n"; for (auto &vec : v) { cout << " "; @@ -52,17 +49,13 @@ void printvv(const vector> &v) { } cerr << "]\n"; } -void print() { - cerr << "\n"; -} +void print() { cerr << "\n"; } -template -void print(T val, TS... vals) { +template void print(T val, TS... vals) { cerr << val << " "; print(vals...); } - /* stuff you should look for: --------------------------- * special cases (n=1?) @@ -81,8 +74,9 @@ void solve() { for (auto &x : v) { cin >> x; st.insert(x); - } - for (auto &x : q) cin >> x; + } + for (auto &x : q) + cin >> x; vi fq(1e5 + 5); vi dp(n); dp[0] = st.size(); @@ -98,10 +92,8 @@ void solve() { } } -int main () { +int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); solve(); } - - -- cgit v1.2.3