自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(115)
  • 收藏
  • 关注

转载 模板函数+运算符的重载

#include<iostream>using namespace std;#define SIZE 5class complex{public: int real; int imag;public: inline int complex::operator <(const complex &c)...

2017-06-26 09:58:00 418

转载 C++文件流读取

通过运用ofstream和ifstream类去创建对象来进行文件读写。使用文件流新建或打开一个文件,并写入字符串 "This is a test file".#include<fstream>#include<iostream>using namespace std;int main(){ ofstream outFile("...

2017-06-26 09:45:00 815

转载 快速排序思想+实现(Goal:手写快排)

转载于:http://blog.csdn.net/morewindows/article/details/6684558该方法的基本思想是:1.先从数列中取出一个数作为基准数。2.分区过程,将比这个数大的数全放到它的右边,小于或等于它的数全放到它的左边。3.再对左右区间重复第二步,直到各区间只有一个数。虽然快速排序称为分治法,但分治法这三个字显然无法很好的概括快...

2017-06-26 09:16:00 146

转载 双向链表的增删改查

#include<cstdio>#include<cstdlib>#include<iostream>using namespace std;struct node{ int data; node *pre; node *next;};void outputList(node *);...

2017-06-19 20:39:00 176

转载 Android 通过外键连接两个数据库

Learn:1.Android数据库的语法。2.通过外键连接两个数据库。3.加强了对数据库的熟悉度。4.对文本框的visiblity属性的了解。Demo:http://pan.baidu.com/s/1c1OZjC8转载于:https://www.cnblogs.com/ZP-Better/p/5425607.html...

2016-04-23 21:21:00 105

转载 WustOJ 1575 Gingers and Mints(快速幂 + dfs )

1575: Gingers and MintsTime Limit: 1 SecMemory Limit: 128 MB 64bit IO Format: %lldSubmitted: 24Accepted: 13[Submit][Status][Web Board]Descriptionfcbruce owns a farmland, the far...

2016-04-18 20:50:00 95

转载 Android数据库信息显示在listview上

Key Points:1.使用SimpleCursorAdapter将Android数据库信息显示在listview上adapter = new SimpleCursorAdapter(this, R.layout.user_list_cell, null, new String[]{"name","sex"}, new int[]{R.id.tvName, R.id....

2016-04-15 21:16:00 2238

转载 Android 开机启动通知

效果图:学习:1.静态注册实现开机启动<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <receiver android:name="com.example.alarmmanagerdemo.AlarmReceiver" &...

2016-04-05 23:00:00 310

转载 JAVA车票管理系统(简单GUI)

一. 需求分析1.设计题目:车票管理系统用JAVA语言和数据结构知识设计设计车票管理系统。要求如下所述:一车站每天有n个发车班次,每个班次都有一个班次号(1、2、3…n),固定的发车时间,固定的路线(起始站、终点站),大致的行车时间,固定的额定载客量。如:班次 发车时间 起点站 终点站 行车时间 额定载量 已定票人数1 8:0...

2016-03-13 10:27:00 7853

转载 POJ1159 Palindrome(数位DP)

PalindromeTime Limit:3000MSMemory Limit:65536KTotal Submissions:58277Accepted:20221DescriptionA palindrome is a symmetrical string, that is, a string rea...

2016-03-08 15:03:00 62

转载 POJ1061青蛙的约会(扩展欧几里德算法)

青蛙的约会Time Limit:1000MSMemory Limit:10000KTotal Submissions:102239Accepted:19781Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,...

2016-03-07 20:48:00 112

转载 自定义Adapter

step1:自定义一个类step2: 继承BaseAdapter重写函数。step1:package com.example.uilistviewtest;public class Fruit { private String name; private int imageId; public Fruit(String n...

2016-02-18 10:45:00 89

转载 简单拨号器(Android)

感受:1.了解了intent中的action和Uri.2.了解了向下一个活动传递数据。3.了解了内容提供器。4.了解自定义适配器。4.其实T9拨号器和简单计算器原理一样。代码:MainActivity:package com.example.contactstest;import java.util.ArrayList;im...

2016-02-09 20:01:00 173

转载 简单计算器(Android)

感受:1.加强了对点击事件的了解。 2.了解到了TextView的append,setText,getText方法。 3.了解到TableLayout中的TableRow的用法。Activity:package com.example.calculater;import java.util.ArrayList;import ...

2016-02-03 21:20:00 129

转载 POJ-2533最长上升子序列(DP+二分)(优化版)

Longest Ordered SubsequenceTime Limit:2000MSMemory Limit:65536KTotal Submissions:41944Accepted:18453DescriptionA numeric sequence ofaiis ordered ifa1...

2016-01-16 22:16:00 122

转载 POJ-2955括号匹配问题(区间DP)

BracketsTime Limit:1000MSMemory Limit:65536KTotal Submissions:4834Accepted:2574DescriptionWe give the following inductive definition of a “regular brac...

2016-01-15 16:19:00 104

转载 POJ3669(Meteor Shower)(bfs求最短路)

Meteor ShowerTime Limit:1000MSMemory Limit:65536KTotal Submissions:12642Accepted:3414DescriptionBessie hears that an extraordinary meteor shower is com...

2015-12-22 23:22:00 71

转载 Colorful Lecture Note(手工栈)

题目1 : Colorful Lecture Note时间限制:10000ms单点时限:1000ms内存限制:256MB描述Little Hi is writing an algorithm lecture note for Little Ho. To make the note more comprehensible, Little Hi...

2015-12-12 11:28:00 177

转载 POJ3278 Catch That Cow(BFS)

DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a po...

2015-11-09 09:24:00 68

转载 类的设计

1001: 类的设计(1)Time Limit: 1 SecMemory Limit: 65535 MB 64bit IO Format: %lldSubmitted: 9Accepted: 7[Submit][Status][Web Board]Description设计clock类,成员数据包含时(hour)分(minute)秒(second),都是i...

2015-11-08 22:58:00 145

转载 HOJ 1096 Divided Product (DFS)

时间限制:10000ms单点时限:1000ms内存限制:256MB描述Given two positive integers N and M, please divide N into several integers A1, A2, ..., Ak (k >= 1), so that:1. 0 < A1 < A2 < ... ...

2015-11-04 21:58:00 103

转载 HDU1698 Just a Hook (区间更新)

Just a HookTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23644Accepted Submission(s): 11839Problem DescriptionIn the game of ...

2015-10-06 22:06:00 102

转载 独立写作(A or B)

开头:On contemporary society(一般的背景)/ With the advent of the technologically advanced society (the information explosive era(与科技有关的背景))/ On account of …,XX(中心词) serves as a catalyst for our future s...

2015-10-06 12:39:00 92

转载 HDU1394 Minimum Inversion Number(线段树OR归并排序)

Minimum Inversion NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15113Accepted Submission(s): 9230Problem DescriptionThe...

2015-10-05 15:13:00 63

转载 HDU5441 Travel (离线操作+并查集)

TravelTime Limit: 1500/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2055Accepted Submission(s): 709Problem DescriptionJack likes to travel ar...

2015-09-24 17:30:00 140

转载 学生管理系统(list)

学生管理系统:学习了一点文件指针的操作和链表操作,以前总想搞下子,刚好碰到同学要做这个,自己瞎搞了一通。实现功能:数据添加,查找,删除,插入,修改只是在查找加几句就没写。#include <cstdio>#include <iostream>#include <cstdlib>#include <algorithm>...

2015-09-22 20:00:00 215

转载 HDU5437 Alisha’s Party (优先队列 + 模拟)

Alisha’s PartyTime Limit: 3000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2650Accepted Submission(s): 722Problem DescriptionPrincess Alisha...

2015-09-17 18:23:00 107

转载 (转)ZOJ 3687 The Review Plan I(禁为排列)

The Review Plan ITime Limit: 5 Seconds Memory Limit: 65536 KBMichael takes the Discrete Mathematics course in this semester. Now it's close to the final exam, and he wants to take a comp...

2015-09-05 21:13:00 69

转载 POJ22230 Watchcow (欧拉回路)

WatchcowTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 6477Accepted: 2823Special JudgeDescriptionBessie's been appointed the new watch-cow for...

2015-08-26 09:41:00 84

转载 中国剩余定理

转:ACM 进阶学习第一课----同余相关之中国剩余定理:m.blog.csdn.net/blog/hu1020935219/14112149 数论——中国剩余定理(互质与非互质):http://yzmduncan.iteye.com/blog/1323599/  hdu 3579 Hello Kiki 中国剩余定理(不互质形式)模板题:http://blog.csdn....

2015-08-24 21:27:00 45

转载 HDU3994(Folyd + 期望概率)

Mission ImpossibleTime Limit: 30000/10000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 227Accepted Submission(s): 106Special JudgeProblem Description...

2015-08-19 22:39:00 148

转载 POJ1270 Following Orders (拓扑排序)

Following OrdersTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 4254Accepted: 1709DescriptionOrder is an important concept in mathematics and in com...

2015-08-17 15:55:00 109

转载 HDU 3634 City Planning (离散化)

City PlanningTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 483Accepted Submission(s): 203Problem DescriptionAfter many years, t...

2015-08-16 15:13:00 139

转载 HDU4762(JAVA大数)

Cut the CakeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1102Accepted Submission(s): 540Problem DescriptionMMM got a big big b...

2015-08-16 14:54:00 118

转载 POJ3026(BFS + prim)

Borg MazeTime Limit:1000MSMemory Limit:65536KTotal Submissions:10554Accepted:3501DescriptionThe Borg is an immensely powerful race of enhanced humanoids ...

2015-08-16 14:44:00 85

转载 POJ1679(次小生成树)

The Unique MSTTime Limit:1000MSMemory Limit:10000KTotal Submissions:24201Accepted:8596DescriptionGiven a connected undirected graph, tell if its minimum ...

2015-08-16 14:32:00 68

转载 UVA10487(二分)

Given is a set of integers and then a sequence of queries. A query gives you a number and asks to find a sum of two distinct numbers from the set, which is closest to the query number.InputInput c...

2015-08-16 14:18:00 75

转载 ZOJ 2048(Prim 或者 Kruskal)

HighwaysTime Limit: 5 Seconds Memory Limit: 32768 KB Special JudgeThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways....

2015-08-12 19:20:00 220

转载 FZU 1856 The Troop (JAVA高精度)

Problem 1856 The Troop Accept: 72Submit: 245Time Limit: 1000 mSecMemory Limit : 32768 KB Problem DescriptionThe troop is advancing. The length of the queue is x meter. The ...

2015-08-12 10:37:00 58

转载 HDU1754(线段树)

I Hate ItTime Limit: 9000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 51036Accepted Submission(s): 20011Problem Description很多学校流行一种比较的习惯。老师们很喜...

2015-08-11 21:37:00 37

空空如也

空空如也

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

TA关注的人

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