2020年1月31日
摘要: Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 56258 Accepted: 27405 Description Due to recent rains, water has pooled in va 阅读全文
posted @ 2020-01-31 08:56 带你AK,带你飞 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 部分和问题时间限制:1000 ms | 内存限制:65535 KB难度:2描述给定整数a1、a2、.......an,判断是否可以从中选出若干数,使它们的和恰好为K。输入首先,n和k,n表示数的个数,k表示数的和。接着一行n个数。(1<=n<=20,保证不超int范围)输出如果和恰好可以为k,输出“ 阅读全文
posted @ 2020-01-31 08:36 带你AK,带你飞 阅读(112) 评论(0) 推荐(0) 编辑
  2020年1月30日
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <map> 4 5 using namespace std; 6 7 8 int main() 9 { 10 // map && multimap 11 // 键值映射容器,一对一,一对多 12 阅读全文
posted @ 2020-01-30 11:43 带你AK,带你飞 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <set> 4 5 // 仿函数的原型 6 //struct greaters 7 //{ 8 // bool operator()(const int &left,const int &rig 阅读全文
posted @ 2020-01-30 11:11 带你AK,带你飞 阅读(124) 评论(0) 推荐(0) 编辑
  2020年1月29日
摘要: 头文件是<queue> 操作很简单 #include <iostream> #include <cstdio> #include <queue> using namespace std; int main() { // 默认定义最大值优先级队列 priority_queue<int> p1; p1. 阅读全文
posted @ 2020-01-29 20:14 带你AK,带你飞 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 永远不要让心灵干涸,时刻拥有着梦想,体验着人生,拥有着思想,做出行动,做让自己骄傲的事,做让世界变得更美好的事。 如今,要如树的种子般,扎根大地,深深的汲取让自己爆发的力量。 化身虚无,如同从未出现过一样。悄然的改变着世界,做着自己所能做出的贡献,而不留下痕迹。 “技术无黑白,攻防无对错”,也许,作 阅读全文
posted @ 2020-01-29 19:57 带你AK,带你飞 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Anton has a positive integer nn, however, it quite looks like a mess, so he wants to make it beautiful after kk swaps of digits. Let the decimal repre 阅读全文
posted @ 2020-01-29 11:40 带你AK,带你飞 阅读(149) 评论(0) 推荐(0) 编辑
摘要: You still have partial information about the score during the historic football match. You are given a set of pairs (ai,bi)(ai,bi), indicating that at 阅读全文
posted @ 2020-01-29 09:09 带你AK,带你飞 阅读(130) 评论(0) 推荐(0) 编辑
  2020年1月28日
摘要: The Fair Nut likes kvass very much. On his birthday parents presented him nn kegs of kvass. There are vivi liters of kvass in the ii-th keg. Each keg 阅读全文
posted @ 2020-01-28 22:01 带你AK,带你飞 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <list> 3 4 using namespace std; 5 6 int main() 7 { 8 // list可以在头部和尾部插入和删除元素 9 // 不能随机访问元素,迭代器只能++,不能一次性跳转 10 list<int 阅读全文
posted @ 2020-01-28 21:11 带你AK,带你飞 阅读(126) 评论(0) 推荐(0) 编辑