自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小坏蛋_千千

I was caught in a heavy rain!

  • 博客(741)
  • 资源 (10)
  • 问答 (1)
  • 收藏
  • 关注

原创 POJ 1845 Sumdiv (数论,约数和)

DescriptionConsider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).InputThe only line contains the two nat

2017-01-21 14:04:38 442

原创 POJ 1942 Paths on a Grid (组合数学)

Description Imagine you are attending your math lesson at school. Once again, you are bored because your teacher tells things that you already mastered years ago (this time he’s explaining that (a+b)

2017-01-21 13:49:35 385

原创 POJ 1850 Code (组合数学)

Description Transmitting and memorizing information is a task that requires different coding systems for the best use of the available space. A well known system is that one where a number is associa

2017-01-21 13:36:36 501

原创 POJ 3292 Semi-prime H-numbers (筛法统计)

Description This problem is based on an exercise of David Hilbert, who pedagogically suggested that one study the theory of 4n+1 numbers. Here, we do only a bit of that. An H-number is a positi

2017-01-17 19:25:30 289

原创 POJ 2635 The Embarrassed Cryptographer (同余问题)

Description The young and very promising cryptographer Odd Even has implemented the security module of a large system with thousands of users, which is now in use in his company. The cryptographic ke

2017-01-17 14:42:58 433

原创 POJ 3122 Pie (二分)

Description My birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party

2017-01-11 21:25:44 635

原创 2016,还是到了最后

你在雨中行走,你从不打伞,你有自己的天空,它从不下雨。而我只知道,你离开了,我的世界里只剩下雨……

2017-01-01 12:27:25 4389 2

原创 用博弈的思想看世界

囚徒困境的故事讲的是,两个嫌疑犯作案后被警察抓住,分别关在不同的屋子里接受审讯。警察知道两人有罪,但缺乏足够的证据。

2016-12-27 21:51:06 689

原创 hihocoder 1453 Rikka with Tree (简单DP)

描述 众所周知,萌萌哒六花不擅长数学,所以勇太给了她一些数学问题做练习,其中有一道是这样的: 勇太有一棵 n 个节点的以1为根的有根树。现在他可以对这棵树进行若干次操作,每一次操作可以选择树上的一个点然后删掉这个点和它的儿子之间的所有边。 现在勇太想要知道对于每一个 k ∈ [1, n],最少需要多少次操作才能让图中恰好存在 k 个联通块。 当然,这个问题对于萌萌哒

2016-12-25 21:13:52 530

原创 Python3 + django 支持 MySQL

最近要做一个数据库的课程设计,嗯,没记错的话是三周的时间(17,18,19)下周还有一个很重要的考试,所以一定要赶快完成。

2016-12-22 12:12:20 2263 1

原创 HDU 3394 Railway (点双联通分量+桥)

Problem Description There are some locations in a park, and some of them are connected by roads. The park manger needs to build some railways along the roads, and he would like to arrange tourist rou

2016-12-11 21:35:21 530

原创 POJ 1459 Power Network (最大流)

Description A power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amount s(u) >= 0 of power, may produce a

2016-12-11 10:45:39 693 1

原创 POJ 1273:Drainage Ditches (最大流)

Description Every time it rains on Farmer John’s fields, a pond forms over Bessie’s favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to reg

2016-12-11 09:38:27 530

原创 POJ 3469:Dual Core CPU (最大流)

Description 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 rou

2016-12-10 20:33:59 744

原创 计算机组成原理 - 实验报告

第一次实验 手动实验环境十六位机运算器实验第二次实验 通用寄存器实验准双向I/O口实验地址总线组成实验第三次实验 十六位数据总线实验存储器读写实验指令总线运用实验第四次实验 微控制器实验

2016-12-10 10:58:14 16116

原创 HDU 3549 Flow Problem (最大流)

Problem Description Network flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow for the weighted directed graph.Input The first line of inpu

2016-12-04 18:56:23 522

原创 HDU 3376 Matrix Again (最小费用最大流)

Problem Description Starvae very like play a number game in the n*n Matrix. A positive integer number is put in each area of the Matrix. Every time starvae should to do is that choose a detour w

2016-12-04 14:04:28 853

原创 POJ 2135 Farm Tour (最小费用流)

Description When FJ’s friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the first of which contains his house and the Nth of whi

2016-12-01 20:44:33 826

原创 HDU 1269:迷宫城堡 (Tarjan强连通分量)

Problem Description 为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(N<=10000)和M条通道(M<=100000),每个通道都是单向的,就是说若称某通道连通了A房间和B房间,只说明可以通过这个通道由A房间到达B房间,但并不说明通过它可以由B房间到达A房间。Gardon需要请你写个程序确认一下是否任意两个房间都是相互连通的,即:对于任意的i和j,至少存在

2016-12-01 09:49:24 557

原创 HDU 3853 LOOPS (概率DP)

Problem Description Akemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl). Homura wants to help her friend Madoka save the world. But because of the plot of the Boss Incubator, she is trappe

2016-11-27 14:19:10 307

原创 HDU 4336 Card Collector (容斥原理||概率DP)

Problem Description In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example, if you collect all the 108 people in the famous novel Water Margin,

2016-11-25 12:37:16 692

原创 HDU 4586:Play the Dice (数学)

Problem Description There is a dice with n sides, which are numbered from 1,2,…,n and have the equal possibility to show up when one rolls a dice. Each side has an integer ai on it. Now here is a gam

2016-11-25 10:12:50 501

原创 『数论』扩展欧几里得算法

扩展欧几里德算法是用来在已知a, b求解一组x,y,使它们满足贝祖等式: ax+by = gcd(a, b) =d(解一定存在,根据数论中的相关定理)。扩展欧几里德常用在求解模线性方程及方程组中。欧几里德算法概述欧几里德算法又称辗转相除法,用于计算两个整数a,b的最大公约数。

2016-11-24 15:33:48 607

原创 HDU 3555 Bomb (数位DP)

Problem Description The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb counts from 1 to N. If the curren

2016-11-19 20:40:52 453

原创 HDU 2476:String painter (区间DP)

String painterProblem Description There are two strings A and B with equal length. Both strings are made up of lower case letters. Now you have a powerful string painter. With the help of the painter

2016-11-19 14:44:42 482

原创 HDU 1796:How many integers can you find(容斥原理)

How many integers can you findTime Limit: 12000/5000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7456    Accepted Submission(s): 2205Problem Descripti

2016-11-01 21:41:59 537

原创 HDU 4135:Co-prime (容斥原理)

Co-primeTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4289    Accepted Submission(s): 1698Problem DescriptionGiven a number N,

2016-11-01 21:35:17 467

原创 POJ 3370:Halloween treats(鸽巢原理)

Halloween treatsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8099 Accepted: 2950 Special JudgeDescriptionEvery year there is the same problem at

2016-10-31 09:47:49 394

原创 POJ 2356:Find a multiple (鸽巢原理)

Find a multipleTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7743 Accepted: 3379 Special JudgeDescriptionThe input contains N natural (i.e. positi

2016-10-31 09:32:37 427

原创 HDU 4372:Count the Buildings (Stirling数)

Count the BuildingsTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1300    Accepted Submission(s): 422Problem DescriptionThere a

2016-10-31 09:22:47 441

原创 HDU 3037:Saving Beans(Lucas定理)

Saving BeansTime Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4540    Accepted Submission(s): 1788Problem DescriptionAlthough wint

2016-10-31 09:14:02 488

原创 hihocoder 1080 : 更为复杂的买卖房屋姿势 (线段树)

描述小Hi和小Ho都是游戏迷,“模拟都市”是他们非常喜欢的一个游戏,在这个游戏里面他们可以化身上帝模式,买卖房产。在这个游戏里,会不断的发生如下两种事件:一种是房屋自发的涨价或者降价,而另一种是政府有关部门针对房价的硬性调控。房价的变化自然影响到小Hi和小Ho的决策,所以他们希望能够知道任意时刻某个街道中所有房屋的房价总和是多少——但是很不幸的,游戏本身并不提供这样的计算。不过这难不倒小H

2016-10-16 14:03:40 680

原创 HDU 1576:A/B (乘法逆元)

A/BTime Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4603    Accepted Submission(s): 3590Problem Description要求(A/B)%9973,但由于A很大,我们

2016-10-08 18:32:15 575

原创 Python - 统计字母个数

题目内容:定义函数countchar()统计字符串中所有出现的字母的个数(允许输入大写字符,并且计数时不区分大小写)。形如:def countchar(str):      ... ...     return a listif __name__ == "__main__":     str = raw_input()     ... ...

2016-10-04 21:37:22 18367 2

原创 HDU 5907:Find

Find QTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/131072 K (Java/Others)Total Submission(s): 263    Accepted Submission(s): 148Problem DescriptionByteasar is addicte

2016-10-02 12:41:57 723

原创 Python - 寻找第n个默尼森数

题目内容:找第n个默尼森数。P是素数且M也是素数,并且满足等式M=2**P-1,则称M为默尼森数。例如,P=5,M=2**P-1=31,5和31都是素数,因此31是默尼森数。输入格式:用input()函数输入,注意如果Python 3中此函数的返回类型。输出格式:int类型输入样例:4

2016-10-01 14:53:03 3039

原创 HDU 2841:Visible Trees (容斥原理)

Visible TreesTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2796    Accepted Submission(s): 1222Problem DescriptionThere are ma

2016-09-29 21:01:02 534

原创 前100个卡特兰数

留作备用string catalan[]={ "1", "2", "5", "14", "42", "132", "429", "1430", "4862", "16796", "58786", "208012", "742900", "2674440", "9694845

2016-09-28 20:38:52 4186

原创 HDU 5904:LCIS(LCIS)

LCISTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 440    Accepted Submission(s): 201Problem DescriptionAlex has two sequences

2016-09-25 15:45:05 625

原创 HDU 5902:GCD is Funny (GCD)

GCD is FunnyTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 306    Accepted Submission(s): 65Problem DescriptionAlex has invente

2016-09-25 14:50:36 626

Spig 网站浮动小人 (javascript)

采用 Javascript 开发的网站前端浮动小人,具体效果可以见:https://www.dreamwings.cn 小人支持右键秘密链接,支持自动根据时间问候(早上好、中午好之类),支持自动间隔一段时间展示 hihokito 精美句子。

2018-06-17

OICQ 聊天室(Java 课程设计)

大二第一学期的 Java 课程设计,支持用户注册,单人聊天,多人聊天,支持好友列表,支持个人信息修改,数据库使用 mysql,采用 Java 开发。

2018-06-17

Little Giant (C++ 课程设计)

一款使用 cocos-2dx 开发的 io 类休闲游戏,仿“弓箭手大作战”,C++ 课程设计。(可在 win10 应用商店下载开玩) ---------------------------------------------------- 游戏名称: 进击的小巨人 游戏类型: 休闲类 3D 游戏 运行环境: Windows 7及以上、Linux、Android 4.0及以上、IOS、Windows 10 mobile 游戏引擎: Cocos2d-x 3.10

2018-06-17

Flow blog(数据库课程设计)

一款使用 Python django 开发的简易 CMS 内容管理系统 标记:大二 - 数据库课程设计 --- 这是一款简约、高效的博客系统,你可以利用它发表自己的文章,每一篇文章都必须要有一个分类,这是你应该创建的,不过文章的标签属性可以有多个。同时,游客可以对公开的文章进行评论,当然,你也可以回复他。 你可以创建自己的页面,这会在首页显示,不过遗憾的是,当页面太多的时候首页看起来会很奇怪,不过关于这一点我们会在以后修复它。 博客支持多用户同时注册并管理,不过新建用户的时候需要管理员的授权,管理员可以授予用户相应的管理权限,而用户则可以在满足权限的情况下把它授予给其他人。为了管理方便,我们引入了组的概念,对组进行授权相当于我们对组内的所有用户进行授权。

2018-06-17

Codeforces Edu Hacking

使用 C# + WPF 开发 --- 还在发愁打了那么多场比赛都没有进入首页么? 还在为了前 5 的 hacker 名额阅读千份代码么? 是的,你没有看错! 这是一个 Edu & Div.3 轮 Open hacking 错误代码自动查找器! 你只需要提前构造好某些题的叉点数据,填入它,OK!一切就是这么的方便! 注:仅适用于 Edu 以及 Div.3 轮比赛赛后 hack,不支持 Div.1/2 赛时 hack。 适用人群:想进入首页 Hack 榜的选手

2018-06-17

HDU 自动 AC 机(Python)

一款 HDU OJ 的自动刷题工具,搜索来源可选用 百度搜索 / 必应搜索,支持并行以及串行查找,祝早日刷上航电首页哦~ 使用 Python 编写,执行之前你需要在同目录下创建文件 aclog.txt ,然后粘贴进你目前已经 AC 的题目,然后在代码执行过程中便不会去再查找这些题了。

2018-06-17

黑白棋 (Reversi)

大一的课程设计,写的是一个黑白棋,也就是这个,支持单人模式,双人模式,联机对战,电脑演示等功能,也是千千做的最好的一个啦!easyx图形界面,目前仅是单线程运行。

2016-10-30

一个人的时光

一个人的时光,终究只是一个人,这是一个用GBK语言编写的脚本小游戏,欢迎大家来下载哦!

2016-02-04

黑客帝国C语言

动态效果,黑客帝国 #include <windows.h> #define ID_TIMER 1 #define STRMAXLEN 25 //一个显示列的最大长度 #define STRMINLEN 8 //一个显示列的最小长度 LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ; typedef struct tagCharChain //整个当作屏幕的一个显示列,这是个双向列表 { struct tagCharChain *prev; //链表的前个元素 TCHAR ch; //一个显示列中的一个字符 struct tagCharChain *next; //链表的后个元素 } CharChain, *pCharChain; typedef struct tagCharColumn { CharChain *head, *current, *point; int x, y, iStrLen; //显示列的开始显示的x,y坐标,iStrLen是这个列的长度 int iStopTimes, iMustStopTimes; //已经停滞的次数和必须停滞的次数,必须停滞的次数是随机的 } CharColumn, *pCharColumn; /***********************/ ..................... ...................

2016-01-07

VC绘图库Easyx

EasyX 是 Visual C++ 平台的绘图库(静态 LIB),用以在 Visual C++ 中模拟 Turbo C 的绘图库头文件 ,并实现对 32 位和 64 位 Windows 的支持,解决了Turbo C 由于使用 16 位的 BGI 绘图库不支持 Windows 的问题。同时,EasyX 针对 Windows 的特点,在色彩范围、分辨率、鼠标、批量绘图等方面做了相应的函数扩展。

2016-01-05

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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