Preface: Most of the answers below are written by myself "only instructors are given access to the exercise solutions" . If you find anything wrong, p ...
分类:
其他好文 时间:
2018-10-14 20:57:12
阅读次数:
321
Problem "AtCoder" & "bzoj" 题意:数轴上有$n$个点(初始坐标均为整数),编号为$1$~$n$。给出$m$个操作。 每个操作会选定点$a$,然后随机在点$a 1$和点$a+1$中选一个,将点$a$以选中的点为中心做对称,将这$m$个操作按顺序执行$k$遍($1$~$m$完整 ...
分类:
其他好文 时间:
2018-10-10 21:47:34
阅读次数:
152
题意:数轴上有$n$个点,从$1$到$n$编号。有$m$个操作,每次操作给出一个编号$i \, 1 n, m \leq 10^5, \, k \leq 10^{18} 首先,容易得到一个坐标为x的点,关于坐标为y的点对称后,新点的坐标为2y x。我们记点i的坐标为$p_i$,那么对它操作后得到的新点 ...
分类:
其他好文 时间:
2018-10-05 18:47:20
阅读次数:
149
Preface: Most of the answers below are written by myself "only instructors are given access to the exercise solutions" . If you find anything wrong, p ...
分类:
其他好文 时间:
2018-10-04 12:52:12
阅读次数:
421
A GIF decoder: an exercise in Go interfaces 25 May 2011 Introduction At the Google I/O conference in San Francisco on May 10, 2011, we announced that ...
分类:
其他好文 时间:
2018-09-25 11:29:07
阅读次数:
203
In this lesson we write an imperative function to flatten nested arrays, and then use the popular map, reduce, compose, and pipe functions to transfor ...
分类:
编程语言 时间:
2018-09-12 19:56:27
阅读次数:
183
Hello,everyone! My name is Xianhong Zhou.I'am a 19-years-old boy.I have a lot of hobbies.I like to exercise with my friends. If you only have one, you ...
分类:
其他好文 时间:
2018-09-08 13:05:33
阅读次数:
170
Exercise bzoj-2097 Usaco-2010 Dec 题目大意:题目链接 注释:略。 想法:题目描述生怕你不知道这题在考二分。 关键是怎么验证?我们想到贪心的删边。 这样的策略是显然正确的。 之后树形dp的时候维护一下就行。 最后,附上丑陋的代码... ... 小结:有意思...这种题 ...
分类:
其他好文 时间:
2018-08-30 01:57:40
阅读次数:
173
%% Machine Learning Online Class - Exercise 1: Linear Regression % Instructions % % % This file contains code that helps you get started on the % line ...
分类:
其他好文 时间:
2018-08-24 18:07:41
阅读次数:
160
Time limit :2000 ms Memory limit :32768 kB Consider the following exercise, found in a generic linear algebra textbook. Let A be an n × n matrix. Prov ...
分类:
其他好文 时间:
2018-08-16 22:33:05
阅读次数:
190