码迷,mamicode.com
首页 > 其他好文
PyQt5 消息框
import sys from PyQt5.QtWidgets import QApplication, QWidget, QMessageBox class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): ...
分类:其他好文   时间:2015-04-29 10:12:21    阅读次数:215
解题报告 之 POJ3469 Dual Core CPU
解题报告 之 POJ3469 Dual Core CPU 点集拆分 最小割 最大流 As more and more computers are equipped with dual core CPU, SetagLilb, the Chief Technology Officer of TinySoft Corporation, decided to update their famous product - SWODNIW. The routine consists of N modules, and ...
分类:其他好文   时间:2015-04-29 10:11:21    阅读次数:257
PyQt5 窗口定于屏幕中心
import sys from PyQt5.QtWidgets import QApplication, QWidget, QDesktopWidget class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): ...
分类:其他好文   时间:2015-04-29 10:09:32    阅读次数:154
顺序表的实现
顺序表的实现     我也是正在学链表,所以就按自己的想法把顺序表的基本实现功能写出来分享给大家, 希望对你有帮助。 1:头文件list.h#ifndef _LIST_H_ #define _LIST_H_ #include #include #define ElemType int #define error -1 typedef struct List { size_t size;...
分类:其他好文   时间:2015-04-29 10:10:49    阅读次数:168
折线分割平面
time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 19714    Accepted Submission(s): 13519 Problem Description 我们看到过很多直线分割平面的题目,今天的这个题目稍...
分类:其他好文   时间:2015-04-29 10:11:00    阅读次数:140
uva348 最优矩阵链乘 经典区间dp
// uva348 最优矩阵链乘 // 典型的区间dp // dp[i][j] 表示矩阵i到j链乘所得到的最小花费 // dp[i][j] = min(dp[i][k]+dp[k+1][j]+a[i].pl*a[k].pr*a[j].pr); // 在区间i到j上找一个k使得dp[i][k]+dp[k+1][j]这两部分的和在加上最后的 // a[i].pl*a[k].pr*p[i].pr的最小值...
分类:其他好文   时间:2015-04-29 10:08:43    阅读次数:138
2015编程之美 彩色的树
题目1 : 彩色的树 时间限制:2000ms 单点时限:1000ms 内存限制:256MB 描述 给定一棵n个节点的树,节点编号为1, 2, …, n。树中有n - 1条边,任意两个节点间恰好有一条路径。这是一棵彩色的树,每个节点恰好可以染一种颜色。初始时,所有节点的颜色都为0。现在需要实现两种操作: 1. 改变节点x的颜色为y; 2. 询问整棵树被划分成了多少棵颜色...
分类:其他好文   时间:2015-04-29 10:10:38    阅读次数:124
UVa10534Wavio Sequence (最长上升子序列LIS)
Wavio Sequence Input: Standard Input Output: Standard Output Time Limit: 2 Seconds   Wavio is a sequence of integers. It has some interesting properties. ·  Wavio is of odd length i.e. L =...
分类:其他好文   时间:2015-04-29 10:09:39    阅读次数:120
uva 10201 Adventures in Moving - Part IV (DP)
uva 10201 Adventures in Moving - Part IV题目大意:借了一辆车,车里有100单位的油。要到达N米外的目的地(每走一米消耗一个单位的油),在这一段路程中,有若干个加油站,给出的数据是每个加油站的位置和加一单位油的价格。要求到达目的地且剩下100单位油的最小消费。(到达不了则输出Impossible)解题思路:dp[i][j]数组代表的是第i个加油站油量为j的最小费...
分类:其他好文   时间:2015-04-29 10:09:57    阅读次数:135
Light oj 1038 Race to 1 Again(概率dp)
1038 - Race to 1 Again PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Rimi learned a new thing about integers, which is - any posi...
分类:其他好文   时间:2015-04-29 10:07:56    阅读次数:129
Max Num(最大数)
time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 16377    Accepted Submission(s): 10155 Problem Description There are some students...
分类:其他好文   时间:2015-04-29 10:09:36    阅读次数:179
HDU 1160 FatMouse's Speed
刚开始输入写错了,最后还会接收一次值的 这道题如果只有一个维度,那么直接排序之后顺序输出就行了,但这里有二维,排序之后有一些点不能同时选,就需要决择了 先将所有老鼠按我们需要的大小关系排个序,然后就相当于求个最长上升子序列了 #include #include #include #include const int inf=999999; using namespace std; int d...
分类:其他好文   时间:2015-04-29 10:08:03    阅读次数:112
PyQt5 状态栏
import sys from PyQt5.QtWidgets import QApplication, QMainWindow class Example(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): se...
分类:其他好文   时间:2015-04-29 10:07:14    阅读次数:189
[LeetCode]Count Primes
Description: Count the number of prime numbers less than a non-negative number, n click to show more hints. References: How Many Primes Are There? Sieve of Eratosthenes Credits: Speci...
分类:其他好文   时间:2015-04-29 10:06:42    阅读次数:134
OSGi#2:编程方式使用Equinox
今天来看下怎么在程序中使用Equinox容器。...
分类:其他好文   时间:2015-04-29 10:06:41    阅读次数:137
PyQt5菜单栏
import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, qApp from PyQt5.QtGui import QIcon class Example(QMainWindow): def __init__(self): super().__init__() sel...
分类:其他好文   时间:2015-04-29 10:07:10    阅读次数:412
hdu 4751 Divide Groups 2—sat问题 还是未理解
This year is the 60th anniversary of NJUST, and to make the celebration more colorful, Tom200 is going to invite distinguished alumnus back to visit and take photos. After carefully planning, Tom200 announced his activity plan, one that contains two char...
分类:其他好文   时间:2015-04-29 10:07:17    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!