再三确认题目,可以出现重复数字后,全1输出即可。 有x,将x分成a+b(a+b==x) 如何分配,使LCM(a,b)最小。 通过样例注意到偶数可以分成两个一样的数字 9可以分成x,2x。 然后毫无理由的猜测平方数可以分成x,2x,但是是完全错误的。 然后举了一些小的例子,比如7->(1,6),(2, ...
分类:
其他好文 时间:
2020-07-12 10:22:58
阅读次数:
160
Introduction In part A we should add multiprocessor support to JOS, implement round-robin scheduling, and add basic environment management system call ...
分类:
其他好文 时间:
2020-07-11 23:16:57
阅读次数:
101
数值型 int float complex bool 数字的处理函数 round();四舍六入,五取偶;round(1.5)=2;round(2.5)=2; floor()地板;天花板ceil(); math.floor(1.5)=1;math.ceil(1.5)=2; min(); max(); ...
分类:
编程语言 时间:
2020-07-11 23:10:10
阅读次数:
100
题意:有$n$个桩子,$1$表示该位置有一个火炉,可以使两边距离为$r$的范围照亮,问最少使用多少炉子使得所有范围都被照亮. 题解:贪心,首先我们从$r$位置开始向左找,如果找到了就记录这个位置,然后答案+1,然后再从$2*r-1$这个位置开始向左找第一个没有标记的火炉,如果没有找到就直接输出$-1 ...
分类:
其他好文 时间:
2020-07-11 23:04:03
阅读次数:
47
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>innerHTML ...
分类:
Web程序 时间:
2020-07-11 22:58:45
阅读次数:
76
ylbtech-JavaScript-Runoob:JavaScript break 和 continue 语句 1.返回顶部 1、 JavaScript break 和 continue 语句 break 语句用于跳出循环。 continue 用于跳过循环中的一个迭代。 break 语句 我们已经 ...
分类:
编程语言 时间:
2020-07-11 19:38:45
阅读次数:
73
A Bug's Life Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different gend ...
分类:
其他好文 时间:
2020-07-11 17:33:44
阅读次数:
54
A substring of a string T is defined as: T(i, k)=TiTi+1...Ti+k-1, 1≤i≤i+k-1≤|T|. Given two strings A, B and one integer K, we define S, a set of tripl ...
分类:
编程语言 时间:
2020-07-11 13:09:02
阅读次数:
71
ComboBox控件绑定数据源后,添加'请选择'或'全部' 当使用ComboBox控件绑定数据源之后,通过Items 属性添加的数据是无效的,此时如果要在所有选项前添加 选项 ,则需要考虑从数据源下手,代码如下 1 //连接字符串 2 string conStr = @"Data Source=DM ...
分类:
其他好文 时间:
2020-07-11 13:03:06
阅读次数:
63
<html> <head> <title>Tippy</title> </head> <body> <button data-tippy-content="我是你大爷">Text1</button> <button data-tippy-content="我是你二大爷">Text2</button> ...
分类:
编程语言 时间:
2020-07-11 12:48:32
阅读次数:
52