上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: #include #include #include #include using namespace std; typedef long long ll; queue q; inline ll read () { ll x=0,f=1; char ch=getchar(); while(!isdigit(ch)) { if(ch=='-') f... 阅读全文
posted @ 2019-01-31 12:06 Isaunoya 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; typedef long long ll; deque d; inline ll read () { ll x=0,f=1; char ch=getchar(); while(!isdigit(ch)) { if(ch=='-') f... 阅读全文
posted @ 2019-01-31 12:05 Isaunoya 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; typedef long long ll; priority_queue , greater >q; //greater 从小到大排序 //less 从大到小排序 inline ll read () { ll x=0,f=1; char ch=getchar... 阅读全文
posted @ 2019-01-31 12:04 Isaunoya 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 例题 #include <bits/stdc++.h> #define rep(i,j,n) for(register int i=j;i<=n;i++) #define Rep(i,j,n) for(register int i=j;i>=n;i--) #define low(x) x&(-x) 阅读全文
posted @ 2019-01-31 11:24 Isaunoya 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 例题 阅读全文
posted @ 2019-01-31 11:22 Isaunoya 阅读(188) 评论(0) 推荐(0) 编辑
摘要: muliset就不提了 muliset 是set的“升级版” ; 定义方法 阅读全文
posted @ 2019-01-31 11:22 Isaunoya 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include <list> #include <iostream> #include <cstdio> #include <cctype> using namespace std; typedef long long ll; list < ll > l; inline ll read () { 阅读全文
posted @ 2019-01-31 11:21 Isaunoya 阅读(69) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-01-31 02:30 Isaunoya 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 前缀和 前缀和是一种很重要的思想 其实这个思想很简单 就是一次预处理 把原来O(N*M)的复杂度降到O(N+M) ∑a[i]+...+a[j]=sum[j]-sum[i-1]; 那么区间的数值查询该怎么做呢 假设有m次查询 ans=∑a[x]+...a[y]; 如上所述 ∑a[x]+...a[y]= 阅读全文
posted @ 2019-01-31 00:48 Isaunoya 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 60pts + 0 pts+ 15pts = 75pts (我太弱了) T1 T1【问题描述】 对于给定正整数 n,m,我们称正整数 c 为好的,当且仅当存在非 负整数 x,y,使得 n*x+m*y=c。 现在给出多组数据,对于每组数据,给定 n,m,q,求[1,q]内有 多少个正整数不是好的。 【 阅读全文
posted @ 2019-01-29 23:48 Isaunoya 阅读(333) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
TOP