This is just a CodeForces competitive programming directory. Where we're going to code all our things. To avoid problems running in computers we have created a few things. Basically you need to create the .in
and .out
problems and run:
xxxx
is your problem code or whatever filename you put to your xxxx.rb
, xxxx.in
and xxxx.out
make ruby PRG=xxxx
xxxx
is your problem code or whatever filename you put to your xxxx.rb
, xxxx.in
and xxxx.out
make cpp PRG=xxxx
xxxx
is your problem code or whatever filename you put to your xxxx.rb
, xxxx.in
and xxxx.out
make go PRG=xxxx
make solve PRG=xxxx
make clean PRG=xxxx
- The ladder is an organized code forces set of problems increasing in difficulty.
template<typename T> ostream& operator<<(ostream &os, const vector<T> &v) { os << '{'; string sep; for (const auto &x : v) os << sep << x, sep = ", "; return os << '}'; }
template<typename T, size_t size> ostream& operator<<(ostream &os, const array<T, size> &arr) { os << '{'; string sep; for (const auto &x : arr) os << sep << x, sep = ", "; return os << '}'; }
template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { return os << '(' << p.first << ", " << p.second << ')'; }