相关分类: Java技术 C/C++ VB delphi
  • 29.QT-自定义窗口拖动、自定义QToolButton/QPushButto

    自定义窗口及拖动 1.自定义无边框窗口时,需要将窗口标志设为: Qt::FramelessWindowHint |Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint 2.然后还需要通过安装EventFilter给自己监视窗口拖动 其中构造函数实现: myUi::myUi(QWidget * parent) : QWidget(pare...

    2018-06-29 06:14:39

  • POJ1509 Glass Beads(最小表示法 后缀自动机)

    Time Limit: 3000MS Memory Limit: 10000K Total Submissions: 4901 Accepted: 2765 Description Once upon a time there was a famous actress. As you may expect, she played mostly Antique Comedies most of all. All the people loved her. But she was not inte...

    2018-06-29 06:14:38

  • SPOJ8222 NSUBSTR - Substrings(后缀自动机)

    You are given a string S which consists of 250000 lowercase latin letters at most. We define F(x) as the maximal number of times that some string with length x appears in S. For example for string 'ababa' F(3) will be 2 because there is a string 'ab...

    2018-06-29 06:14:37

  • BZOJ3277: 串(广义后缀自动机)

    Time Limit:10 Sec Memory Limit:128 MB Submit:1196 Solved:478 [Submit][Status][Discuss] Description 字符串是oi界常考的问题。现在给定你n个字符串,询问每个字符串有多少子串(不包括空串)是所有n个字符串中 至少k个字符串的子串(注意包括本身)。 Input 第一...

    2018-06-29 06:14:35

  • BZOJ2946 [Poi2000]公共串(后缀自动机)

    Description 给出几个由小写字母构成的单词,求它们最长的公共子串的长度。 任务: l读入单词 l计算最长公共子串的长度 l输出结果 Input 文件的第一行是整数n,1=n=5,表示单词的数量。接下来n行每行一个单词,只由小写字母组成,单词的长度至少为1,最大为2000。 Outp...

    2018-06-29 06:14:34

  • HDU 2899 Strange fuction(牛顿迭代)

    Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9333Accepted Submission(s): 6352 Problem Description Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 = x =100) Can you find the mini...

    2018-06-27 10:06:54

  • HDU Ellipse(simpson积分)

    Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2677Accepted Submission(s): 1208 Problem Description Math is important!! Many students failed in 2+2s mathematical test, so let's AC this problem to...

    2018-06-27 10:06:53

  • C++创建对象的三种方法

    ...

    2018-06-27 10:06:52

  • 27.QT-QProgressBar动态实现多彩进度条(详解)

    如下图所示: 效果如下: (gif录制的动画效果不好,所以颜色有间隙) 介绍 通过qss实现,只需要一个多彩背景图,通过QImage获取颜色,然后来设置进度条,便可以实现动态多彩进度条(根据图片设定颜色) 其中,上面3个进度条就是通过以下3个图片实现的: 如果想实现其它颜色,只需要...

    2018-06-27 10:06:49

  • 从硬件到语言,详解C++的内存对齐(memory alignment

    转载请保留以下声明 作者:赵宗晟 出处:https://www.cnblogs.com/zhao-zongsheng/p/9099603.html 很多写C/C++的人都知道“内存对齐”的概念以及规则,但不一定对他有很深入的了解。这篇文章试着从硬件到C++语言、更彻底地讲一下C++的内存对齐。 什么是内存对齐(memor...

    2018-06-27 10:06:49

2