Description: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time y ...
分类:
其他好文 时间:
2019-09-02 17:02:14
阅读次数:
104
~~双倍经验,还是蓝题,岂不美哉~~ 题目描述 老师交给小可可一个维护数列的任务,现在小可可希望你来帮他完成。 有长为N的数列,不妨设为$a_1,a_2,…,a_N$ 。有如下三种操作形式: (1)把数列中的一段数全部乘一个值; (2)把数列中的一段数全部加一个值; (3)询问数列中的一段数的和,由 ...
分类:
其他好文 时间:
2019-09-02 13:41:52
阅读次数:
81
1、安装node.js (自行百度) 2、全局安装express生成器 express-generator npm install express-generator -g 3、查看 express 版本,可以检查生成器 express-generator 是否安装成功 express -v 4、( ...
分类:
移动开发 时间:
2019-09-02 11:27:57
阅读次数:
158
老BIOS中操作系统分区不能超过137.4GB,否则会崩溃 BIOS只能引导137.4GB的数据,即引导操作系统。操作系统加载成功后,就可以访问超过137GB边界的其他分区。 LINUX gParted分区 您的C分区应小于128GiB - 这是137GB。除此之外的任何分区都不可引导,BIOS将在 ...
分类:
移动开发 时间:
2019-09-02 00:11:16
阅读次数:
136
CAB202 Assignment 1, Semester 2 2019Assessment Weight: 30%ContextYou are tasked with bringing to life the classic characters of Tom and Jerry in a ter ...
分类:
其他好文 时间:
2019-09-01 20:17:16
阅读次数:
111
1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 typedef double db; 5 #define INF 0x3f3f3f3f 6 #define _for(i,a,b) for(int i... ...
分类:
其他好文 时间:
2019-09-01 16:34:53
阅读次数:
65
1 #define _for(i,a,b) for(int i = (a);i < b;i ++) 2 #define _rep(i,a,b) for(int i = (a);i > b;i --) 3 4 class Solution 5 { 6 public: 7 int dietPlanPer... ...
分类:
其他好文 时间:
2019-09-01 15:05:54
阅读次数:
179
1 #define _for(i,a,b) for(int i = (a);i < b;i ++) 2 #define _rep(i,a,b) for(int i = (a);i > b;i --) 3 4 class Solution 5 { 6 public: 7 bool is_prime(i... ...
分类:
其他好文 时间:
2019-09-01 14:23:44
阅读次数:
84
我真是猪脑子哇 学姐讲的全被我吃了 qwq 今天又温习了一下, 觉得还是写下来比较好 毕竟我的记忆力 犹如冬风 不仅刷刷刷的还飕飕飕的 关于割点与割边(桥): 割点:删它及其连边去之后图变为不连通 能够成为割点的条件: 1.对于根节点,有两棵或以上子树 2.对于非根非叶节点, 某棵子树没有指向u的祖 ...
分类:
其他好文 时间:
2019-09-01 12:53:33
阅读次数:
105
HDU3949 XOR 线性基板子题 给定一些数 求这些数能通过异或得到的第k大的值。 代码: 1 #include <bits/stdc++.h> 2 #define nmax 10010 3 4 using namespace std; 5 typedef long long ll; 6 ll ...
分类:
其他好文 时间:
2019-09-01 01:17:38
阅读次数:
104