上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页
摘要: poj 3468 给出N个数,Q次操作。有两种操作类型 1. 在区间 [L,R] 加上一个整数v 2. 区间[L,R]查询。 区间查询 区间更新 #include<iostream> #include<string.h> using namespace std; #define ls rt<<1 # 阅读全文
posted @ 2018-08-14 21:47 Draymonder 阅读(229) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-01-10 13:12 Draymonder 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 这里有些函数我也看不懂耶,莫名奇妙的,也想过自己实现,不过觉得bug太多,不知道怎么改,就索性用书上代码 这个实验纯抄书吧 using System; using System.Collections.Generic; using System.Drawing; using System.Drawi 阅读全文
posted @ 2018-01-10 13:07 Draymonder 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 寒假 完善一下 用数据库来存储数据 这样 增删查改方便些 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; names 阅读全文
posted @ 2018-01-10 12:49 Draymonder 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 花了两个小时理解公式,我数学是不是太弱了.. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using Sys 阅读全文
posted @ 2017-12-14 17:09 Draymonder 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 程序设计实践课程作业一 好久没用的blog了, 以后还是要把自己的东西整理一下,看到周围的人变得越来越强,我越来越想当只咸鱼,划划水的了 using System; using System.Collections; using System.Collections.Generic; using S 阅读全文
posted @ 2017-12-14 14:45 Draymonder 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 问题描述 小明和小芳出去乡村玩,小明负责开车,小芳来导航。 小芳将可能的道路分为大道和小道。大道比较好走,每走1公里小明会增加1的疲劳度。小道不好走,如果连续走小道,小明的疲劳值会快速增加,连续走s公里小明会增加s2的疲劳度。 例如:有5个路口,1号路口到2号路口为小道,2号路口到3号路口为小道,3 阅读全文
posted @ 2017-12-14 14:42 Draymonder 阅读(1995) 评论(1) 推荐(1) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4902 线段树 区间更新 模板题 #include<bits/stdc++.h> using namespace std; #define N 100005 #define mid (l+r)/2 #define 阅读全文
posted @ 2017-10-29 22:48 Draymonder 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 给出一段区间a-b,统计这个区间内0-9出现的次数。 比如 10-19,1出现11次(10,11,12,13,14,15,16,17,18,19,其中11包括2个1),其余数字各出现1次。 Input 两个数a,b(1 <= a <= b <= 10^18) Output 输出共10行,分别是0-9 阅读全文
posted @ 2017-10-18 16:52 Draymonder 阅读(448) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; const int maxn = 100100; int a[maxn],b[maxn]; stack<int>s; int main() { int n; cin >> n; for(int i=1;i<=n 阅读全文
posted @ 2017-09-14 18:26 Draymonder 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页