ACM算法_贪心
文章平均质量分 88
风吹过的烟花
这个作者很懒,什么都没留下…
展开
-
hdu FatMouse' Trade
点击打开链接 密码:syuctFatMouse' TradeTime Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 1 Accepted Submission(s) : 1Font: Times New Rom原创 2017-11-16 19:53:22 · 435 阅读 · 0 评论 -
codeforces 385A Bear and Raspberry
点击打开链接A. Bear and Raspberrytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe bear decided to stor原创 2018-04-24 20:46:46 · 174 阅读 · 0 评论 -
codeforces 34B Sale
点击打开链接B. Saletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce Bob got to a sale of old TV sets原创 2018-04-23 20:55:27 · 827 阅读 · 0 评论 -
codeforces 258A Little Elephant and Bits
点击打开链接A. Little Elephant and Bitstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Little Elepha原创 2018-04-30 15:01:09 · 355 阅读 · 0 评论 -
codeforces-381-A
题目链接题意:有n张卡片,每张卡片上有不同的数字,Sereja和Dima从两侧取卡片,每次尽量取大的,求两人最后分别得到的和。贪心,或者模拟一下这个过程,需要注意的是:当n=1时,这个要单独考虑,由于没考虑这个,错了一次。下边的是我的代码。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const原创 2018-04-10 20:38:04 · 190 阅读 · 0 评论 -
计蒜客-DOTA
题目链接 本来想把题目粘贴过来,但是格式不好,就不弄过来了。 典型的贪心,注意的贪心的排序,基本上每次贪心都要排序,这个排的不是血量 AC代码:#include<bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; struct dota{ int原创 2018-04-10 20:37:00 · 108 阅读 · 0 评论 -
codeforces 507A Amr and Music
点击打开链接A. Amr and Musictime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAmr is a young coder who likes原创 2017-08-05 17:02:10 · 247 阅读 · 0 评论 -
codeforces 835B The number on the board
点击打开链接B. The number on the boardtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSome natur原创 2017-08-09 13:48:45 · 380 阅读 · 1 评论 -
codeforces 461A Appleman and Toastman
点击打开链接A. Appleman and Toastmantime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman and Toastman原创 2017-09-02 18:30:43 · 206 阅读 · 0 评论 -
codeforces 779C Dishonest Sellers
点击打开链接C. Dishonest Sellerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIgor found out discounts i原创 2017-07-28 19:33:14 · 294 阅读 · 0 评论 -
codeforces 439A Devu, the Singer and Churu, the Joker
网址:点击打开链接A. Devu, the Singer and Churu, the Jokertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDevu原创 2017-06-29 09:19:59 · 339 阅读 · 0 评论 -
codeforces 701A Cards
点击打开链接A. Cardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n cards (n is even)原创 2017-07-24 09:44:03 · 253 阅读 · 0 评论 -
codeforces 519C A and B and Team Training
点击打开链接C. A and B and Team Trainingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA and B a原创 2017-09-10 09:00:39 · 327 阅读 · 0 评论 -
codeforces 515C Drazil and Factorial
点击打开链接C. Drazil and Factorialtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDrazil is pla原创 2017-09-13 17:41:16 · 302 阅读 · 0 评论 -
codeforces 766B Mahmoud and a Triangle
点击打开链接B. Mahmoud and a Triangletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMahmoud has原创 2017-10-30 19:21:28 · 393 阅读 · 0 评论 -
codeforces 508B Anton and currency you all know
点击打开链接B. Anton and currency you all knowtime limit per test0.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBerland,原创 2018-04-25 15:31:19 · 203 阅读 · 0 评论