2013-12-07から1日間の記事一覧
https://paiza.jp/poh/ec-campaign に挑戦してみましたので,そのコードを載せておきます. #include <iostream> #include <vector> #include <algorithm> template <class Iterator> inline int calc(Iterator const first, Iterator const last, int const value) { if (*(last - 1) + *(last - 2) <= va</class></algorithm></vector></iostream>…