2947: [Poi2000]促销Time Limit: 10 SecMemory Limit: 128 MBSubmit: 58Solved: 33[Submit][Status]DescriptionBytelandish连锁超市委托你编写一个程序来模拟一项即将施行的促销活动,该活动的规则如下:... Read More
转载
2014-12-13 17:07:00
75阅读
2评论
题目大意:给定n天,每天先插入一些数,然后取出最大值和最小值,付出最大值-最小值的代价,求n天后一共付出多少代价堆/线段树/平衡树裸题#include #include #include #include #include using namespace std;int n,m;long long ans;multiset s;int main(){ int i,j,
原创
2023-04-19 00:35:03
18阅读
标题效果:特定n天,首先插入一些每天。然后去掉最高值和最低值
转载
2015-07-25 20:57:00
78阅读
2评论
高斯消元法模版题,但套模版没用。。先回顾一下线性代数的知识。若要求解如下方程: 首先,其系数矩阵为 然后,其增广矩阵为: 然后若要求解这个方程,首先将第一行第一个元素化为1,即:第一行乘以1/3。 然后将第二、三行减去第一行五倍: 扯淡了不是。。太麻烦了。。。额,我不会告诉你我用matlab做的。。a = [3,2,4; 5, 3, 1; 10, 2,2]; b = [10;1;3]; x = inv(a) * b;x = a\b;然后这个方程的解是-0.2059 -0.2500 2.7794。。。好了废话少说。题目是要求建立一个方程组: (mat[1][1]*x[1] + mat[1][..
转载
2013-08-16 19:19:00
64阅读
When a Little White meets another Little White: Little White A: (Surprised) !Little White B: ?Little White A: You Little White know "SHDC"? So unbelie
转载
2017-03-08 17:09:00
23阅读
2评论
题目是要求建立一个方程组: (mat[1][1]*x[1] + mat[1][2]*x[2] + … +
转载
2017-05-13 08:23:00
18阅读
点赞
Buy TicketsTime Limit: 4000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:282864-bit integer IO format:%lld Java class name:Mai...
转载
2014-08-12 17:07:00
94阅读
2评论
对于同余方程的高斯消元啊。 其实也差不多吧。先同一位通分,然后减一下就好了。 主要是判无解和多解的麻烦,需要注意即使有自由元也可能先无解
转载
2018-08-03 07:30:00
38阅读
2评论
题意 Language:DefaultWidget Factory Time Limit: 7000MSMemory Limit: 65536KTotal Submissions: 7197Accepted: 2533DescriptionThe widget factory produces se
转载
2019-04-05 18:43:00
24阅读
2评论
DescriptionThe widget factory produces several different kinds of widgets. Each widget is carefully built by a skilled widgeteer. T
原创
2023-04-24 09:28:16
52阅读
http://poj.org/problem?id=2947各种逗啊。。还好1a了。。题意我就不说了,百度一大把。转换为mod的方程组,即(x[1,1]*a[1])+(x[1,2]*a[2])+...+(x[1,n]*a[n])=x[1, n+1] (mod m)(x[2,1]*a[1])+(x[2...
原创
2021-08-11 13:50:03
127阅读
洛谷P2947-Look up S 题目大意 有n头牛,每头牛向右边看,问每头牛看到的第一个比他自己高的牛的位置是什么。 思路 因为每头牛是向右边找第一个比他高的,所以在他右边所有的小于等于他的都可以丢掉。 利用单调栈的的性质,做一个栈顶到栈底升序的单调栈。并且从后往前遍历。 这两题 ...
转载
2021-09-05 19:56:00
84阅读
2评论
DescriptionThe widget factory produces several different kinds of widgets. Each widget is carefully built by a skilled widgeteer. The ...
转载
2017-10-08 14:31:00
54阅读
2评论
P2947 [USACO09MAR]仰望Look Up P2947 [USACO09MAR]仰望Look Up P2947 [USACO09MAR]仰望Look Up 74通过 122提交 题目提供者洛谷OnlineJudge 标签USACO2009云端 难度普及/提高- 时空限制1s / 128M
原创
2021-12-27 15:14:45
136阅读
给你一个字符串 s 和一个正整数 k 。用 vowels 和 consonants 分别表示字符串中元音字母和辅音字母的数量。如果某个
原创
2023-12-17 09:23:47
17阅读
题目大意:有 N 种装饰物,M 个已知条件,每个已知条件描述为:p s ta1,a2,…,ap (1 <= ai <= N)
原创
2015-09-16 22:41:32
57阅读
题目描述 Farmer John's N (1 <= N <= 100,000) cows, conveniently numbered 1..N, are once again standing in a row. Cow i has height H_i (1 <= H_i <= 1,000,0
原创
2021-07-27 15:11:03
189阅读
分块傻逼题。 memset很慢的。。。而且其实也没有用。。。。
转载
2016-07-18 20:45:00
95阅读
2评论
Widget FactoryTime Limit:7000MS Memory Limit:65536KTotal S
原创
2023-02-08 08:55:22
37阅读