之前写某题单词查找的时候,有用到set,晚上写codeforces#497 div2 D题有用到map感觉set,map的功能挺类似的,在此小结;这里就不具体比较相同点和不同点了,免得看起来乱七八糟的,这里分别细说;set:#include sets;(类型可为int,char,string)功能主...
分类:
其他好文 时间:
2014-10-21 02:13:54
阅读次数:
222
Problem Description
To prove two sets A and B are equivalent, we can first prove A is a subset of B, and then prove B is a subset of A, so finally we got that these two sets are equivalent.
You ar...
分类:
其他好文 时间:
2014-10-18 03:05:05
阅读次数:
290
题目链接:点击打开链接
题意:
输出n组集合,每组4个。
对于任意一组中的4个元素,一组内任意2个数的gcd==k
且n组的所有数字各不相同。
要使得n组中最大的数字最小。
问:
输出最大的那个数,并输出n组的数字。
思路:
首先能得到,当把这组数字都/k,则任意两个数互质。
然后就是规律:
1 2 3 5
7 8 9 11
对应+6
#include
#includ...
分类:
其他好文 时间:
2014-10-17 20:31:00
阅读次数:
256
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the Ser...
分类:
其他好文 时间:
2014-10-15 18:19:41
阅读次数:
186
最近用到自定义控件,想做出类似于原生态控件那样的注释,写代码的时候鼠标放上去有提示,到属性栏有分类和具体说明要添加这样的注释只需要上注释下面一段话就行了/// /// Gets or sets the default text //鼠标放上去的文字提示 /// ...
常常写SQL语句的人应该知道Group by语句的主要使用方法是进行分类汇总,以下是一种它最常见的使用方法(依据部门、职位分别统计业绩):SELECT a.dname,b.job,SUM(b.sal) sum_salFROM dept a,emp bWHERE a.deptno = b.deptn....
分类:
数据库 时间:
2014-10-11 23:19:06
阅读次数:
438
POJ2443
Set Operation
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 2679
Accepted: 1050
Description
You are given N sets, the i-th set (represent...
分类:
其他好文 时间:
2014-10-11 15:40:55
阅读次数:
150
11991 - Easy Problem from Rujia Liu?Time limit: 1.000 secondsProblem EEasy Problem from Rujia Liu?Though Rujia Liu usually sets hard problems for cont...
分类:
其他好文 时间:
2014-10-10 22:51:14
阅读次数:
239
The number of CPU instruction sets has kept growing, and likewise for the operating systems which are able to run and support on more than one CPU sys...
分类:
系统相关 时间:
2014-10-09 17:02:47
阅读次数:
1016
- 经验总结1. 可用对话框(QDialog)模拟类似Android中toast的效果。- 设置程序界面风格在main函数中QApplication::setStyle("windows");QApplication::setStyle("windowsxp");QApplication::setS...
分类:
其他好文 时间:
2014-10-09 14:33:14
阅读次数:
255