Last active
January 22, 2025 13:35
-
-
Save Gholamrezadar/b2b2e58895edc279708a05f28b9f99b4 to your computer and use it in GitHub Desktop.
GHD CF Template cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma region Template | |
// #include <bits/stdc++.h> | |
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <cmath> | |
#include <algorithm> | |
#include <unordered_map> | |
#include <unordered_set> | |
using namespace std; | |
typedef long long ll; | |
ll MOD = 1e9 + 7; | |
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL) | |
#define all(x) (x).begin(), (x).end() | |
// print a vector of ints | |
void print_v(vector<int> v) { | |
for(int i = 0; i < v.size(); i++) { | |
cout<<v[i]<<" "; | |
} | |
cout<<endl; | |
} | |
// print a vector of bools | |
void print_v(vector<bool> v) { | |
for(int i = 0; i < v.size(); i++) { | |
char ch = v[i] ? '-' : 'F'; | |
cout<<ch<<" "; | |
} | |
cout<<endl; | |
} | |
// prefix sum | |
// partial_sum(B.begin(), B.end(), B.begin()); | |
// postfix sum | |
// partial_sum(C.rbegin(), C.rend(), C.rbegin()); | |
// sum(vector) | |
// int summ = accumulate(v.begin(), v.end(), 0); | |
#pragma endregion | |
void solve() { | |
} | |
int main() | |
{ | |
fast_cin(); | |
int t = 1; | |
cin >> t; | |
while (t--) { | |
solve(); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment