https://codeforces.com/problemset/problem/1000/B 题意: 一个模拟思维题。就是有一盏灯,0时刻开着。n次操作,你可以在其中加入一次操作(或者不加),操作为:a[i]时刻按一下开关,状态变为相反状态(开->关or关->开)。问灯亮着的时长最长为多少? 样 ...
分类:
其他好文 时间:
2019-10-03 20:11:34
阅读次数:
64
题目描述 There are NN light bulbs indexed from 00 to N-1N?1. Initially, all of them are off. A FLIP operation switches the state of a contiguous subset of ...
分类:
其他好文 时间:
2019-09-26 23:24:55
阅读次数:
116
There are NN light bulbs indexed from 00 to N-1N?1. Initially, all of them are off. A FLIP operation switches the state of a contiguous subset of bulb ...
分类:
其他好文 时间:
2019-09-25 17:32:49
阅读次数:
135
最近仔细研究了Unity3D中的灯光以及渲染,有了全新的认识,在这里整理记录下来。博主所使用的是Unity3D 2017.3.1f1这个版本。 一、Unity3D中的灯光 Directional Light:平行光,用来模拟太阳发射的光。 Point Light:点光源,用于模拟场景中的灯和其他本地 ...
分类:
编程语言 时间:
2019-09-19 16:28:26
阅读次数:
331
题目传送门 题意 T组案例,每组案例:n个灯泡(from 0 to n-1),m次操作,每次操作把区间[L,R]内的灯泡翻转(开变关,关变开),问m次操作之后有多少灯泡是亮着的。(时间限制:1000ms 内存限制:8192K) 题解 这道题不仅卡时间,更是卡内存,所以用线段树会爆内存 正解: 该题可 ...
分类:
其他好文 时间:
2019-09-18 01:17:21
阅读次数:
124
Docker Light-weight virtualization - for class 2
分类:
其他好文 时间:
2019-09-17 22:44:51
阅读次数:
114
日常补题——ICPC网络赛上海站第二题B Light bulbs 题目链接: https://nanti.jisuanke.com/t/41399 博客借鉴: https://blog.csdn.net/weixin_43701790/article/details/100867368 题目大意: ...
分类:
其他好文 时间:
2019-09-16 19:26:20
阅读次数:
72
题目链接: "Light bulbs" 比赛链接: "The Preliminary Contest for ICPC Asia Shanghai 2019" 题意 给定 $N$ 个灯泡 (编号从 $0$ 到 $N 1$),初始都是关闭的。 给定 $M$ 个操作,每个操作包含 $L$ 和 $R$,对 ...
分类:
其他好文 时间:
2019-09-16 00:06:33
阅读次数:
79
There are N light bulbs indexed from 00 to N?1. Initially, all of them are off. A FLIP operation switches the state of a contiguous subset of bulbs. F ...
分类:
编程语言 时间:
2019-09-15 18:24:46
阅读次数:
93
Teaching how to use docker
分类:
其他好文 时间:
2019-09-14 01:00:45
阅读次数:
97