
STL
文章平均质量分 55
Freddddddddddd
这个作者很懒,什么都没留下…
展开
-
Uva-11991 - Easy Problem from Rujia Liu?
题目大意:求第k个v的编号方法很多,这里给出比较快的,用STL中的map和vector#include<iostream>#include<cstdio>#include<map>#include<cstring>#include<vector>using namespace std;const int N=1000005;map<int,vector<int> >ma;int n,原创 2016-10-18 11:33:37 · 238 阅读 · 0 评论 -
[NOIP模拟][STL][冒泡排序][贪心][Bash模拟]
T1:题目大意: 智乃 【题目描述】 给你 ��个字符串 ,你每次 可以 选择 其中 一个 字符串 的一段 前缀 进行 翻转 ,但 是你必须 保证 这个 前缀 的长度 是偶数 。你可以 进行 无限次 这样 的操作 ,并且 如果 两个 字符串 变得 相同 的时候 ,你就 可以 把这两个 字符串 都删除 掉,问最后 最少 剩 下多少个 字符串 ? 【输入格式】 第一行个整数 ��代表数 据组。原创 2016-11-09 19:07:02 · 1272 阅读 · 0 评论 -
Uva11997 K Smallest Sums
题目: You’re given k arrays, each array has k integers. There are kk ways to pick exactly one element in each array and calculate the sum of the integers. Your task is to find the k smallest sums among t原创 2016-10-20 22:02:56 · 381 阅读 · 0 评论