uva10288:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1229题意:有一种盒子,盒子一面会随机放一种卡片,现在要集齐n种卡...
分类:
其他好文 时间:
2014-07-22 22:40:12
阅读次数:
228
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=48113916935540Team QueueAcceptedC++0.3392014-07-21...
分类:
其他好文 时间:
2014-07-22 00:22:34
阅读次数:
217
代码: DialogResult result = MessageBox.Show("确定移除选中词吗?", "移除选中",MessageBoxButtons.YesNo,MessageBoxIcon.Information); if (result == Dia...
分类:
其他好文 时间:
2014-07-22 00:12:34
阅读次数:
333
抽空写了个日历程序,只注重功能和实现的思路,所以代码和功能都比较简单,但是理解和扩展也比较容易。
show()函数用来显示日历,你可以修改show()函数,通过传值的方式来实现显示不同的年月。
<?php
class Calendar{
public $weekarray = array('星期日','星期一','星期二','星期三','星期四','星期...
分类:
Web程序 时间:
2014-07-22 00:12:33
阅读次数:
278
题目链接:http://acm.hnu.cn/online/?action=problem&type=show&id=12812一直弄错了一个题意,教训啊,比赛最怕的就是弄错题意了 1 #include 2 #include 3 #include 4 #include 5 #include 6 #i...
分类:
其他好文 时间:
2014-07-22 00:10:34
阅读次数:
228
题目链接:http://acm.hnu.cn/online/?action=problem&type=show&id=12830&courseid=268解题思路:本题应用到杨氏矩阵的特性。每一次选取上一行的最大值位置到这一行的第一个为正的位置,找到最大值,并一直这样到最后一行。解题代码: 1 //...
分类:
其他好文 时间:
2014-07-22 00:01:36
阅读次数:
312
http://acm.hnu.cn/online/?action=problem&type=show&id=12812需要注意的细节很多 唉 看了modiz的代码 写出来的 自己代码能力太弱了 模拟题 atoi的头文件是stdio.h 1 #include 2 #include 3 #inclu.....
分类:
其他好文 时间:
2014-07-21 23:31:02
阅读次数:
278
我们习惯用eclipse svn中查看一个目录下,甚至整个工程下,所有的文件的变更列表;操作为:右键工程 -> Team-> Show History。最近在使用CVS,eclipse对应的cvs插件(Eclipse CVS Client 1.2.1)却不支持此运用,找了下其他一些cvs的客户端(如...
分类:
其他好文 时间:
2014-07-21 23:30:21
阅读次数:
304
直接套KMP模板
#include
#include
#include
using namespace std;
int s[1000005],w[10005],next[10005];
int b,c;
void show()
{
int i,j;
i=0;
next[0]=-1;
j=-1;
while(i<c)
{
if(j=...
分类:
其他好文 时间:
2014-07-21 23:29:03
阅读次数:
334
Problem Description
The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show itself. The show is hold in the Small hall...
分类:
其他好文 时间:
2014-07-21 22:36:27
阅读次数:
249