- 博客(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 367
原创 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 521
原创 微信开发菜单设计
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 507
原创 微信开发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 459
原创 微信消息的封装
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 522
原创 微信接入
1.微信接入签名验证public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String signature = request.getParameter("signature"); String timestam
2017-03-22 13:16:48 312
原创 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 336
原创 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 320
原创 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 257
原创 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 365
原创 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 228
原创 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 214
原创 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 191
原创 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 889
原创 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 248
原创 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 212
原创 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 425
原创 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 260
原创 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 395
原创 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 289
原创 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 224 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 183
原创 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 265
原创 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 339
原创 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 242
原创 基础题训练(简单数学题、字符串)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 338
原创 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 516 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 1272
原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 师兄帮帮忙 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 1027 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 781 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 436
原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 追踪电子表格中的单元格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 629
原创 算法竞赛入门经典(第二版)-刘汝佳-第四章 函数与递归 发放救济金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 505
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人