摘要: 蔡勒公式 \({\displaystyle w=\left( \left(y+\left[{\frac {y}{4}}\right]+\left[{\frac {c}{4}}\right]-2c+\left[{\frac {26(m+1)}{10}}\right]+d-1\right){\bmod 阅读全文
posted @ 2020-08-27 17:07 amonqsq 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #define MAXN 0x3ef int cnts[MAXN]; int main() { int num; scanf("%d",&num); for (int i = 0;i < num;++i) { int id; scanf("%d",&id); 阅读全文
posted @ 2020-08-27 11:52 amonqsq 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #define MAXN 0x1ff int directions[4][2] = { {0,1}, // right {1,-1}, // left and down {1,0}, // down {-1,1} // right and up }; int 阅读全文
posted @ 2020-08-27 11:49 amonqsq 阅读(82) 评论(0) 推荐(0) 编辑