C++ Contest Snippets

plus2047 于 2023-01-01 发布
// kw: boardbfs
int di[4][2] = { {0, -1}, {0, 1}, {1, 0}, {-1, 0} };
for(int i = 0; i < 4; i++) {
    int dx = di[i][0], dy = di[i][1];
}
// help: speed up iostream
#include<iostream>
std::ios::sync_with_stdio(false);