competitve programming solution here...
Tree House Problem Solution Code: CodeChef Solution Code #pragma GCC optimize (" Ofast ", " unroll-loops ") #include <bits/stdc++.h> using namespace std ; #define int long long int #define double long double using pii = pair < int , int >; template < typename T > using Prior = std :: priority_queue < T , vector < T >, greater < T >>; #define X first #define Y second #define eb emplace_back #define ALL ( x ) begin (x), end (x) #define RALL ( x ) rbegin (x), rend (x) #define fastIO () ios_base ::sync_with_stdio, cin. tie ( 0 ) mt19937_64 rng( chrono :: steady_clock :: now (). time_since_epoch (). count ()); inline int getRand ( int L , int R ) { ...
Comments
Post a Comment