Skip to content

Instantly share code, notes, and snippets.

View prabodhprakash's full-sized avatar
👨
Learning, Unlearning

Prabodh prabodhprakash

👨
Learning, Unlearning
View GitHub Profile
@prabodhprakash
prabodhprakash / m.sublime-snippet
Created May 26, 2020 08:21
competitive programming sublime snippet
<snippet>
<content><![CDATA[
#include <bits/stdc++.h>
using namespace std;
//error
#define error(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
void err(istream_iterator<string> it) {}
@prabodhprakash
prabodhprakash / io.cpp
Created May 10, 2020 20:43
Input/Output cpp
/*
if let's say there is an array of size n, and input have to be taken, below is the best way to do it
*/
cin >> arrSize;
vector<int> arr(arrSize);
for (auto &it: arr) {
cin >> it;
}
https://codeforces.com/problemset/problem/1213/B
https://codeforces.com/problemset/problem/617/B
https://codeforces.com/problemset/problem/588/B
https://codeforces.com/problemset/problem/1363/B
https://codeforces.com/problemset/problem/1/B