自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 资源 (2)
  • 收藏
  • 关注

原创 HttpClient工具类

package utils;import java.security.cert.CertificateException;import java.security.cert.X509Certificate;import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util...

2018-02-21 20:11:24 356

原创 html转pdf文件

把当前页面的html内容转换成pdf下载首先引入jspdf.debug.js和html2canvas.js,这两个js网上可以找到然后加入下面script代码$(document).ready(function(){ html2canvas(document.getElementById("content"), { onrendered

2017-10-17 19:28:52 500

原创 微信开发菜单设计

package menu;public class Button { private String type; private String name; private Button[] sub_button; public String getType() { return type; } public void setType(String type) { thi

2017-03-31 15:41:46 486

原创 微信开发po类设计

package po;//AccessToken类public class AccessToken { private String token; private int expireIn; public String getToken() { return token; } public void setToken(String token) { this.toke

2017-03-31 15:39:19 443

原创 微信消息的封装

package util;import java.io.IOException;import java.io.InputStream;import java.util.ArrayList;import java.util.Date;import java.util.HashMap;import java.util.List;import java.util.Map;import

2017-03-22 15:26:45 509

原创 微信接入

1.微信接入签名验证public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String signature = request.getParameter("signature"); String timestam

2017-03-22 13:16:48 238

原创 HDU 3711 Binary Number

Binary NumberTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2472    Accepted Submission(s): 1444Problem DescriptionFor 2 non-negati

2016-09-14 20:33:43 322

原创 UVA 11059 Maximum Product 最大乘积

枚举所有起点和终点即可#include #include using namespace std;int main(){ //freopen("d:\\h.txt","w",stdout); int n,NO=1; while(cin>>n) { long long int a[20]={}; int k=n; while

2016-08-21 13:16:31 307

原创 UVA 725 Division 除法

通过枚举fghij并乘n来算abcde 然后判断数字是否0-9都有且不重复#include #include using namespace std;int check(int m,int n){ int a[10]={}; while(n) { a[n%10]++; n/=10; } while(m) {

2016-08-21 12:49:53 240

原创 HDU 2072 单词数

单词数Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 45272    Accepted Submission(s): 11106Problem Descriptionlily的好朋友xiaoou333最近很

2016-08-16 10:06:18 350

原创 HDU 2080 夹角有多大II

夹角有多大IITime Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9992    Accepted Submission(s): 5136Problem Description这次xhd面临的问题是这样的:在一个

2016-08-16 09:57:42 215

原创 HDU 2083 简易版之最短距离

简易版之最短距离Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16677    Accepted Submission(s): 7468Problem Description寒假的时候,ACBOY要去拜访很

2016-08-16 09:05:09 201

原创 HDU 2087 剪花布条

剪花布条Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16183    Accepted Submission(s): 10233Problem Description一块花布条,里面有些图案,另有一块直接

2016-08-15 18:08:08 174

原创 HDU 2085 核反应堆

核反应堆Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14833    Accepted Submission(s): 6690Problem Description某核反应堆有两类事件发生:高能质点碰

2016-08-15 16:29:53 876

原创 HDU 2098 分拆素数和

分拆素数和Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 33690    Accepted Submission(s): 14672Problem Description把一个偶数拆成两个不同素数的和,有几

2016-08-15 09:08:26 228

原创 HDU 2099 整除的尾数

整除的尾数Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 34745    Accepted Submission(s): 14795Problem Description一个整数,只知道前几位,不知道末二位

2016-08-15 08:45:46 194

原创 UVA 10763 Foreign Exchange 交换学生

#include #include #include #include #include #include #include #include using namespace std;int per[500005][2]={};int main(){ map > stu; //map嵌套把一对学生(x,y)做映射,可以计算每对出现的次数 int n; while

2016-08-12 15:43:36 414

原创 UVA 10935 Throwing Cards Away I 卡片游戏

#include #include #include #include #include #include #include #include using namespace std;int main(){ //freopen("c:\\test.txt","r",stdin); //freopen("c:\\h.txt","w",stdout); ve

2016-08-12 10:08:00 242

原创 UVa 1593 Allgnment of Code 代码对齐

#include #include #include #include #include #include #include #include using namespace std;int main(){ //freopen("c:\\h.txt","w",stdout); vector s; int line=0,wide[1000]={};

2016-08-11 15:18:29 376

原创 UVA156 Ananagrams

DescriptionMost crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have t

2016-08-11 09:43:22 268

原创 UVA 10815 Andy's First Dictionary

#include #include #include #include #include #include using namespace std;int main(){ set dict; string s,t; while(cin>>s) { for(int i=0;i<s.length();i++) {

2016-08-11 09:17:57 199 1

原创 UVA 10474 Where is the Marble?

DescriptionRaju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles one after another in ascending or

2016-08-11 09:01:22 168

原创 HDU 2081 手机短号

手机短号Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 26353    Accepted Submission(s): 16141Problem Description大家都知道,手机号是一个11位长的数字

2016-08-10 12:05:56 247

原创 HDU 2052 Picture

PictureTime Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 25010    Accepted Submission(s): 12753Problem DescriptionGive you the wid

2016-08-10 10:45:00 322

原创 HDU 2137 circumgyrate the string

circumgyrate the stringTime Limit: 10000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4534    Accepted Submission(s): 1053Problem Description 

2016-08-09 09:35:20 226

原创 基础题训练(简单数学题、字符串)P,MTHBGWB POJ-1051

DescriptionMorse code represents characters as variable length sequences of dots and dashes. In practice, characters in a message are delimited by short pauses. The following table shows the Morse

2016-08-08 16:19:27 320

原创 Uva 1589 象棋

在temp数组中把红方所有棋子能到达的位置标‘1’,最后在黑将能走的地方判断一下有没有没被标‘1’的 没有则被将死。#include #include using namespace std;char board[10][9]={},temp[10][9]={};int G_G(int i,int j){ for(int i=7;i<10;i++) {

2016-08-07 21:18:08 497 4

原创 Uva220 Othello

可用Udebug上的测试数据测试下(不全)1.输出格式注意 程序结束的结尾换行是否有多 2.输出黑白棋子数的时候数字%2d输出3.边界值注意4.打印所有合法点的时候两点之间有空格 最有一个点输出没有空格#include #include #include using namespace std;char board[8][8]={},current;int up(char current,int i,in

2016-08-04 15:34:12 1233

原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 师兄帮帮忙 Uva12412

A Typical Homework(a.k.a Shi Xiong Bang Bang Mang)Hi, I am an undergraduate student in institute of foreign languages. As you know, C programming is a required course in our university, even if hi

2016-08-03 10:16:41 1002 1

原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 互联网协议网络Uva1590

DescriptionAlex is administrator of IP networks. His clients have a bunch of individual IP addresses and he decided to group all those IP addresses into the smallest possible IP network.

2016-07-29 15:19:21 754 1

原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 骰子上色Uva253

We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. The cube's faces are numbered as in Figure 1.

2016-07-28 19:46:44 418

原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 追踪电子表格中的单元格Uva512

#include#include#includeint x,i,j,temp=0,flag=0,y,A[100][100]={};void DR(char cmd[3]){ if(strcmp(cmd,"DR")==0) { for(j=0;A[i][j]!=-1;j++) { if(A[i][j]<x) { temp++;

2016-07-28 19:28:02 605

原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 发放救济金Uva133

In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants will be placed in a large

2016-07-27 14:32:19 486

html转pdf文件

把当前html转pdf文件下载 下载压缩包解压,把两个js文件引入 然后添加如下代码

2017-10-17

微信开发简单demo

微信开发简单demo

2017-03-31

空空如也

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

TA关注的人

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