This file contains 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
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 |
This file contains 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
/* | |
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; | |
} |
This file contains 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
<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) {} |