#include <iostream> #include <list> #include <sstream> #include <map> #include <set> #include <queue> #include <map> #include <functional> #include <a... ...
分类:
编程语言 时间:
2019-08-27 21:20:04
阅读次数:
105
#include #include using namespace std; int comp(int buttle, int current, int &drink); int main(void) { int n[10] = { 0,0,0,0,0,0,0,0,0,0 }; int N,i=0;... ...
分类:
其他好文 时间:
2019-08-27 21:00:07
阅读次数:
88
合并果子题目[luogu1090] 题目描述 在一个果园里,多多已经将所有的果子打了下来,而且按果子的不同种类分成了不同的堆。多多决定把所有的果子合成一堆。 每一次合并,多多可以把两堆果子合并到一起,消耗的体力等于两堆果子的重量之和。可以看出,所有的果子经过n-1次合并之后,就只剩下一堆了。多多在合 ...
分类:
其他好文 时间:
2019-08-27 17:11:56
阅读次数:
80
纯数论 30分:纯暴力,直接模拟判断t秒后,判断hp是否小于0 60分: atk =h,就是一炮一个,那么军队会在min(n,t)秒之后停止攻击,那么总伤害就是a[n+(n 1) +(n 2)+........(n min(n,t)+1) 等差数列求和d=a(2n min(n,t)+1) (min( ...
分类:
其他好文 时间:
2019-08-27 10:48:35
阅读次数:
85
linux中shell变量$ ,$@,$0,$1,$2的含义解释: ...
分类:
系统相关 时间:
2019-08-27 01:13:59
阅读次数:
131
题目 luogu3948 输入输出样例 输入 #1复制 3 2 4 0 2 A 1 3 5 Q 2 3 5 1 3 2 3 1 1 2 2 3 3 输出 #1复制 1 2 1 1 1 0 输入 #1复制 3 2 4 0 2 A 1 3 5 Q 2 3 5 1 3 2 3 1 1 2 2 3 3 输出 ...
分类:
其他好文 时间:
2019-08-26 22:51:45
阅读次数:
105
0 前言 从大二开始写博客,主要为了记录自己学习过程中的问题。尝试使用过CSDN、博客园等公共服务,也用Github pages搭建过自己的博客,但效果都不令人满意。CSDN广告太多,界面乌烟瘴气,而且很多博客内容都是抄袭而来;博客园模板比较单一,而且对Markdown的支持不友好;Github p ...
分类:
其他好文 时间:
2019-08-25 20:27:22
阅读次数:
218
file_get_contents() 函数把整个文件读入一个字符串中。 extract() 函数从数组中将变量导入到当前的符号表。 大概就是将flag变量与shiyan变量一致得到flag 将contents内容为空,flag和shiyan变量为空,满足条件 flag{bugku-dmsj-p2s ...
分类:
其他好文 时间:
2019-08-25 18:16:43
阅读次数:
83
实验环境:centos7.4纯净版 postgres版本: 9.6.15 etcd版本:3.3.11 patroni版本: ip规划 192.168.216.130 node1 master 192.168.216.132 node2 slave 192.168.216.134 node3 slav ...
分类:
数据库 时间:
2019-08-25 17:42:37
阅读次数:
1088