よじろめ覚書

私の理解度重視のソースコードです。

2019-06-19から1日間の記事一覧

ABC025B - 双子とスイカ割り

ABC

問題:B - 双子とスイカ割り #include <cstdio> #include <iostream> #include <string> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int getDis(int a, int b, int d) { if (d < a) { return a; } if (b < d) { return b; } return d; } int getDir(string</string></iostream></cstdio>…