自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 1104 Sum of Number Segments(20 分)

1104 Sum of Number Segments(20 分)Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence { 0.1, 0.2, 0.3, 0.4 }, we have 10 segmen...

2018-08-29 15:58:46 976 1

转载 1108. Finding Average (20)

标明出处: https://www.liuchuo.net/archives/1924 1108. Finding Average (20) The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is ...

2018-08-28 21:54:49 155

转载 1112. Stucked Keyboard (20)

标明出处: https://www.liuchuo.net/archives/2075 1112. Stucked Keyboard (20) On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to t...

2018-08-28 21:29:14 112

转载 1116. Come on! Let’s C (20)

不是自己做的,CSDN现在不让转载,只能复制了,标明出处:https://www.liuchuo.net/archives/2476Come on! Let’s C (20) “Let’s C” is a popular and fun programming contest hosted by the College of Computer Science and Technology,...

2018-08-28 20:35:28 163

原创 夏季小学期Day06,07,08——图书馆管理系统(JAVAEE,数据库mysql,前端H5)

首先导入mysql.jar包,直接复制粘贴到lib下即可 我是按字典序排列的class,所以按照代码顺序应该先看第五个->第一个->第二个->第三个->第四个(未完成) 第一个: pac

2018-08-28 20:09:22 3093 1

转载 1120 Friend Numbers(20 分)

不是自己做的,CSDN现在不让转载,只能复制了,标明出处:https://www.liuchuo.net/archives/29011120 Friend Numbers(20 分)Two integers are called “friend numbers” if they share the same sum of their digits, and the sum is their...

2018-08-27 21:26:01 152

转载 1124 Raffle for Weibo Followers(20 分)

1124 Raffle for Weibo Followers(20 分)John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo – that is, he would select winners from every N foll...

2018-08-27 21:07:13 231

原创 1128 N Queens Puzzle(20 分)

1128 N Queens Puzzle(20 分)The “eight queens puzzle” is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no two...

2018-08-27 20:27:58 225

原创 夏季小学期Day05——JAVAEE入门

package com.qianfeng;import java.io.IOException;import javax.servlet.ServletException;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;import javax.servlet.http.HttpServ...

2018-08-27 19:46:44 293

原创 典型相关分析(SPSS)

原理讲解:放一篇博客~ https://blog.csdn.net/mbx8x9u/article/details/78824216例题: 2012高教社杯全国大学生数学建模竞赛题目 (请先阅读“全国大学生数学建模竞赛论文格式规范”)A题 葡萄酒的评价确定葡萄酒质量时一般是通过聘请一批有资质的评酒员进行品评。每个评酒员在对葡萄酒进行品尝后对其分类指标打分,然后求和得到其总分,从...

2018-08-26 12:33:59 8419

原创 夏季小学期day02——JAVA(java.swing)

package mdi;import java.awt.Component;import java.awt.Font;import java.awt.Graphics;import java.awt.Image;import java.awt.Toolkit;import java.awt.image.ImageObserver;public class ImgButton ...

2018-08-22 20:47:42 171

原创 夏季小学期day01——简单考试系统(JAVA)

public class Question { String title; String result; public Question(String title) { super(); this.title = title; }}import java.util.ArrayList;import java.u...

2018-08-22 20:34:42 179

原创 最大流问题讲解(Lingo)

第一节 图论的基本知识1. 图的概念 定义 图G(V,E)是指一个二元组(V(G),E(G)),其中: (1)V(G)={v1,v2,…, vn}是非空有限集,称为顶点集, (2)E(G)是V(G)中的元素对(vi,vj)组成的集合称为边集。 图G:V(G)={v1,v2,v3,v4} ...

2018-08-22 15:58:51 22462 2

转载 1133 Splitting A Linked List(25 分)

声明:本文在博主柳婼的文章基础上做了修改。 原文链接:https://blog.csdn.net/liuchuo/article/details/78037305 1133 Splitting A Linked List(25 分)Given a singly linked list, you are supposed to rearrange its elements so that a...

2018-08-22 15:26:41 215 2

原创 1142 Maximal Clique(25 分)

1142 Maximal Clique(25 分)A clique is a subset of vertices of an undirected graph such that every two distinct vertices in the clique are adjacent. A maximal clique is a clique that cannot be extende...

2018-08-22 09:38:04 170

原创 1144 The Missing Number(JAVA)

1144 The Missing Number(20 分)Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification:Each input file contains one test case. Fo...

2018-08-20 17:22:21 147 1

原创 1145 Hashing - Average Search Time(25 分)

1145 Hashing - Average Search Time(25 分)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys...

2018-08-20 17:21:18 265

原创 1146 Topological Order(25 分)

1146 Topological Order(25 分)This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed graph? Now you are suppo...

2018-08-20 17:19:57 492

原创 1019 General Palindromic Number (20)(JAVA)

1019 General Palindromic Number (20)(20 分)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All ...

2018-08-20 17:18:37 159

原创 1015 Reversible Primes (20)(JAVA)

1015 Reversible Primes (20)(20 分)A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime ...

2018-08-20 17:17:49 186

原创 1011 World Cup Betting (20)(JAVA)

1011 World Cup Betting (20)(20 分)With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the W...

2018-08-20 17:17:10 166

原创 1008 Elevator (20)(JAVA)

1008 Elevator (20)(20 分)The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in speci...

2018-08-20 17:16:26 146

原创 1005 Spell It Right (20)(JAVA)

1005 Spell It Right (20)(20 分)Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input ...

2018-08-20 17:15:47 230

原创 1001 A+B Format (20)(JAVA)

1001 A+B Format (20)(20 分)Calculate a + b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).Inpu...

2018-08-20 17:14:59 160

原创 1132 Cut Integer(JAVA)

1132 Cut Integer(20 分)Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B ...

2018-08-20 17:10:29 165

原创 1136 A Delayed Palindrome(JAVA)

1136 A Delayed Palindrome(20 分)Consider a positive integer N written in standard notation with k+1 digits a​i​​ as a​k​​⋯a​1​​a​0​​ with 0≤a​i​​<10 for all i and a​k​​>0. Then N is palindromic...

2018-08-19 21:40:04 238

原创 1143 Lowest Common Ancestor(set)

1143 Lowest Common Ancestor(30 分)The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants.A binary search tree (BST) is recursively ...

2018-08-16 21:44:55 90

原创 1147 Heaps(30 分)

1147 Heaps(30 分)In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater t...

2018-08-15 16:46:40 250

原创 1134 Vertex Cover(vector)

声明:本文改写自柳婼的一篇博文。 1134 Vertex Cover(25 分)A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with several...

2018-08-14 15:36:02 189

原创 1137 Final Grading(map,重载运算符)

1137 Final Grading(25 分)For a student taking the online course “Data Structures” on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/she must first obtain no...

2018-08-14 11:38:02 152

原创 1138 Postorder Traversal(二叉树前序中序转后序)

1138 Postorder Traversal(25 分)Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to output the first numb...

2018-08-14 08:54:12 175

空空如也

空空如也

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

TA关注的人

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