Skip to content

Instantly share code, notes, and snippets.

View Tarikul-Islam-Anik's full-sized avatar

Tarikul Islam Anik Tarikul-Islam-Anik

View GitHub Profile
@Tarikul-Islam-Anik
Tarikul-Islam-Anik / Competitive Programming Template.cpp
Last active December 28, 2024 13:08
Here's my personal competitive programming template for C++. I'll keep it updated as my programming journey progresses. Have some suggestions or tips? Please comment down below. I would love to hear that.
#include <bits/stdc++.h>
using namespace std;
//IO
#define fastio ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(NULL)
#define tc int t; cin >> t; while(t--)
#define cases cout << "Case " << cnt << ": "
#define get_arr(arr, n) fori(i,n) cin >> arr[i]
#define print_arr(arr, n) fori(i,n) cout << arr[i] << " "; cout << endl