摘要: 实现 #include <iostream> #include <vector> #include <string> #include <map> using namespace std; vector<string> html_lines; map<string,string> vars_val; 阅读全文
posted @ 2020-08-28 14:11 amonqsq 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #define MAXN 0x3ef int origin_matrix[MAXN][MAXN]; int new_matrix[MAXN][MAXN]; int main() { int x_size, y_size; scanf("%d%d",&x_si 阅读全文
posted @ 2020-08-28 10:58 amonqsq 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #include <algorithm> #define MAXN 0x3ef class figure_cnt { public: int figure; int cnt; figure_cnt() {}; figure_cnt(int figure, i 阅读全文
posted @ 2020-08-28 10:49 amonqsq 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 蔡勒公式 \({\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) 编辑
摘要: 实现 #include <cstdio> #include <cstring> #include <algorithm> #define MAX_ORDER_NUM 0x1400 using namespace std; struct order { int type; // 0: buy, 1: 阅读全文
posted @ 2020-08-26 17:23 amonqsq 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #include <algorithm> #define MAXN 0x3ef int nums[MAXN]; int main() { int num; scanf("%d",&num); for (int i = 0;i < num;++i) { sca 阅读全文
posted @ 2020-08-26 11:17 amonqsq 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #define MAX_SIZE 0x70 int map[MAX_SIZE][MAX_SIZE]; int main() { int num_triangle; scanf("%d",&num_triangle); for (int i = 0;i < n 阅读全文
posted @ 2020-08-26 11:06 amonqsq 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #include <cstring> #define MAX_STR_LEN 0xff char sub_str[MAX_STR_LEN]; char str[MAX_STR_LEN]; char str_cpy[MAX_STR_LEN]; int main 阅读全文
posted @ 2020-08-25 13:34 amonqsq 阅读(60) 评论(0) 推荐(0) 编辑