Joeferyの博客

不忘初心,方得始终。

02 连接函数和响应函数

#include #include int main(int argc,char *argv[]) { QApplication app(argc,argv); QPushButton *button = new QPushButton("Quit"); /...

2017-12-02 13:49:05

阅读数 130

评论数 0

01 标签

#include #include int main(int argc,char *argv[]) { QApplication app(argc,argv); QLabel *label = new QLabel("Hello Qt!"); //标签控件 ...

2017-12-02 13:43:54

阅读数 151

评论数 0

C++变量声明和定义的关系

声明:使得名字为程序所知,一个文件如果想使用别处定义的名字,则必须包含对那个名字的声明。 定义:负责创建与名字关联的实体。 变量的定义必须出现且只能出现在一个文件中,而其他要用到该变量的文件必须对其进行声明,且不能重复定义。 声明的方法:在变量名前添加关键字extern,而且不要显示地初始化...

2017-12-01 16:19:39

阅读数 173

评论数 0

Codeforces 525D Arthur and Walls 【DFS】

D. Arthur and Walls time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard ou...

2017-01-08 16:05:07

阅读数 335

评论数 0

Codeforces 246D Colorful Graph【STL瞎暴力】

D. Colorful Graph time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outp...

2017-01-08 13:50:28

阅读数 274

评论数 0

codeforces 746 C. Tram【水题】

C. Tram time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The tram in Berland g...

2016-12-19 00:57:04

阅读数 463

评论数 0

codeforces 746 B. Decoding【水题】

B. Decoding time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycarp is mad a...

2016-12-19 00:54:29

阅读数 586

评论数 0

codeforces 746 A.Compote【水题】

A. Compote time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Nikolay has a lemo...

2016-12-19 00:52:40

阅读数 468

评论数 0

GDUT2016年ACM新生杯初赛题解

题目链接 Problem A: 贪吃的zhazhahe Description Zhazhahe很喜欢吃烧饼,但是要做好一块烧饼,要把两面都弄热,如果一次只能弄一个,zhazhahe一定会等得不耐烦,幸好现在有一个大的平底锅,一次可以同时放入k个烧饼,一分钟只能做好一面。而现在...

2016-11-28 20:11:07

阅读数 3353

评论数 0

HYSBZ 1588 营业额统计【伸展树】

Description 营业额统计 Tiger最近被公司升任为营业部经理,他上任后接受公司交给的第一项任务便是统计并分析公司成立以来的营业情况。 Tiger拿出了公司的账本,账本上记录了公司成立以来每天的营业额。分析营业情况是一项相当复杂的工作。由于节假日,大减价或者是其他情况的时候,营业额...

2016-11-08 23:03:51

阅读数 357

评论数 0

CodeForces 405D Toy Sum【思维】

Description Little Chris is very keen on his toy blocks. His teacher, however, wants Chris to solve more problems, so he decided to play a trick o...

2016-11-06 17:12:14

阅读数 374

评论数 0

CodeForces 405C Unusual Product【思维】

Description Little Chris is a huge fan of linear algebra. This time he has been given a homework about the unusual square of a square matrix. The...

2016-11-06 16:55:34

阅读数 286

评论数 0

CodeForces 405B Domino Effect【模拟】

Description Little Chris knows there's no fun in playing dominoes, he thinks it's too random and doesn't require skill. Instead, he decided to pla...

2016-11-06 16:30:01

阅读数 253

评论数 0

CodeForces 405A Gravity Flip【水题】

Description Little Chris is bored during his physics lessons (too easy), so he has built a toy box to keep himself occupied. The box is special, s...

2016-11-06 16:23:01

阅读数 225

评论数 0

CodeForces 606B Testing Robots【读题题QAQ】

Description The Cybernetics Failures (CF) organisation made a prototype of a bomb technician robot. To find the possible problems it was decided t...

2016-11-05 02:25:03

阅读数 277

评论数 0

CodeForces 606A Magic Spheres【水题】

Description Carl is a beginner magician. He has a blue, b violet and c orange magic spheres. In one move he can transform two spheres of the sam...

2016-11-05 02:00:14

阅读数 304

评论数 0

CodeForces 598D Igor In the Museum【dfs】

Description Igor is in the museum and he wants to see as many pictures as possible. Museum can be represented as a rectangular field of n × m cel...

2016-10-29 15:02:12

阅读数 248

评论数 0

Gym 101138C Stickmen【枚举+排列组合】

Description standard input/output Statements Limak is a little bear who loves to play with graphs. Recently, he defined a new structure in a g...

2016-10-28 11:52:06

阅读数 426

评论数 0

Gym 101138I Prime Moving【素数测试】

Description standard input/output Statements The author of this problem hopes that you already know the pig called Benny. Recently she starte...

2016-10-28 11:15:08

阅读数 206

评论数 0

Gym 101138E Bravebeart【水题】

Description standard input/output Statements Would you want to fight against bears riding horses? Me neither. Limak is a grizzly bear. He is ...

2016-10-28 10:43:48

阅读数 334

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭