DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you ...
分类:
其他好文 时间:
2014-07-31 20:04:07
阅读次数:
212
1、curses库 /* 基本curses函数 */
initscr(); // 初始化curses库和tty
endwin(); // 关闭curses并重置tty
refresh(); // 使屏幕按照你的意图显示
move(r, c); // 移...
分类:
系统相关 时间:
2014-07-31 17:28:31
阅读次数:
369
Description
The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj.
For a given sequence of numbers a1, a2, ..., an, if we move the ...
分类:
其他好文 时间:
2014-07-31 13:31:46
阅读次数:
229
Description
You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them....
分类:
其他好文 时间:
2014-07-31 00:07:15
阅读次数:
222
http://blog.csdn.net/ultimater/article/details/7884951强烈推荐这个人的博客,解题报告都写得特别好,方法简单易懂,赞~解题思路:1.可以暴力,N的阶乖的位数等于LOG10(N!)=LOG10(1)+.....LOG10(N);公式呀~2.Stirl...
分类:
其他好文 时间:
2014-07-30 23:42:35
阅读次数:
280
题意:这题可以理解为n种物品,每种物品的价值和数量已知,现要将总物品分为A,B两部分,
使得A,B的价值尽可能相等,且A>=B,求A,B的价值分别为多少
分析:这题可以用母函数的思想解,不过求的不是方案数,而是判断尽可能接近总价值的一半的方案是否存在.
也可以用背包思想,每种物品的价值和数量已知,可以将总价值的一半作为容量,求最大价值,也就最接近所求值了...
分类:
其他好文 时间:
2014-07-30 17:25:34
阅读次数:
158
1、对于题目给出的已知数据是一个开始时间和一个结束时间的题
第一反应会是将开始时间进行排序
但这样做比较麻烦
做题应该多换几个角度和思维
将这类题按结束时间进行排序会简单的多
2、结构体
struct move //struct是结构体函数
{
int a; //结构体成员
dou...
分类:
其他好文 时间:
2014-07-29 21:51:32
阅读次数:
257
有问题
//ListBox选中的项目移动到第1位 Listbox1.Items.Move(ListBox1.ItemIndex,0); //ListView选中的项目移动到第1位 procedure TForm1.Button5Click(Sender: TObject);varsel:String...
分类:
其他好文 时间:
2014-07-29 21:19:32
阅读次数:
229
哥们写的代码:dword big;__asm{mov eax,amov ebx,bcmp eax,ebxjle HOHObig =ebxHOHO:big = eax} 网上搜了一些,还有的说直接printf出来...
分类:
其他好文 时间:
2014-07-29 21:15:42
阅读次数:
219
/*思路:
看到此题第一反应是将开始时间进行排序
但是这样会比较麻烦
做题应该多换几个角度和思维
将此题按结束时间进行排序
会简单得多*/
#include
#include//qsort排序必加头文件
struct move
{
int tis;
int tie;//成员
}num[110];//只用一个数组就好,因为一个数组里面...
分类:
其他好文 时间:
2014-07-29 18:00:52
阅读次数:
238