"Luogu" ~~像我这种小蒟蒻怎么可能会写高精呢?int128坠好啦~~ 转移方程太显然不写。 cpp include include include const int max_n=80+4; int N,M; __int128 Ans; __int128 A[max_n],dp[max_n] ...
分类:
其他好文 时间:
2018-02-11 14:49:36
阅读次数:
153
题目链接 Divisibility 题意 给定$n$和$k$,构造一个集合$\left\{1, 2, 3, ..., n \right\}$的子集,使得在这个集合中恰好有$k$对正整数$(x, y)$, $x < y$ 满足$x$是$y$的约数。 选定$1$和$2$, 首先把满足 $x > [\fr ...
分类:
其他好文 时间:
2018-02-10 11:15:47
阅读次数:
228
暴力求SG函数即可,记忆化贼方便 / program from Wolfycz / include include include include include define inf 0x7f7f7f7f using namespace std; typedef long long ll; typ ...
分类:
移动开发 时间:
2018-02-09 15:20:10
阅读次数:
227
#include "stdio.h"#ifdef __GNUC__#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)#else#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)#endif PUT ...
分类:
其他好文 时间:
2018-02-08 00:30:29
阅读次数:
140
Description Input Output Sample Input Sample Output HINT 线段树+并查集,暴力记录和更新一些信息,详情见代码注解。 include include include include include define inf 0x7f7f7f7f us ...
分类:
其他好文 时间:
2018-02-05 00:26:25
阅读次数:
182
Description The cows have been sent on a mission through space to acquire a new milking machine for their barn. They are flying through a cluster of s ...
分类:
其他好文 时间:
2018-02-04 00:26:08
阅读次数:
192
10082 WERTYU A common typing error is to place the hands onthe keyboard one row to the right of the correctposition. So ‘Q’ is typed as ‘W’ and ‘J’ is ...
分类:
其他好文 时间:
2018-02-01 23:12:31
阅读次数:
220
输入 scanf gets getline cin.getline cin getchar 输出 cout(结果转为字符串) cout printf(结果转为字符串) printf puts putchar ...
分类:
其他好文 时间:
2018-01-28 12:40:23
阅读次数:
192
零散知识点: 1、非格式化输入输出:getchar()、putchar() 2、格式化输入输出 :scanf()、printf() 3、字符串输入输出 :gets()或scanf()、puts()或printf()。 区别:gets()函数以换行符或文件结束符EOF作为输入的结束标志,因此,在输入的 ...
分类:
编程语言 时间:
2018-01-24 18:10:28
阅读次数:
178