- 博客(27)
- 资源 (8)
- 收藏
- 关注
原创 1016 Phone Bills(测试点解释)
1016Phone Bills(25 分)最最扯淡的是,这个题不能用string类读入,必须使用char[].pat测试点:0 、1测试点:没有消费的用户不能输出2测试点:on和off日期不在同一天却在同一个小时3测试点:on和off日期同一天同一个小时A long-distance telephone company charges its customers by...
2019-01-29 18:48:50 2441 8
原创 1015 Reversible Primes
1015 Reversible Primes (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 beca...
2019-01-28 10:24:19 81
原创 人工智能的道德问题
史蒂芬.卢奇的《人工智能》一书在概述部分就提出了一个课后题目,就是对于能够通过个人图灵测试的机器会引起什么道德或者法律问题。 说起道德问题,我想起2001年的电影《人工智能》,一个具备“超我”品质和理想型情感的人工智能小男孩被家人抛弃的故事。故事非常伤感,引人思考。问题的探讨假定在人造机器可以具备人的思想意识并且可以按照设计者的意愿获取相应的能力与思维。首先要...
2019-01-24 20:35:53 2121
原创 1013 Battle Over Cities
1013Battle Over Cities(25 分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We...
2019-01-24 11:25:57 211
原创 1012 The Best Rank
1012The Best Rank(25 分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only:C- C Programming Language,M- Mathematics (Calculus or L...
2019-01-23 20:14:14 86
原创 1011 World Cup Betting
1011 World Cup Betting (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 World...
2019-01-23 18:00:30 92
原创 1010 Radix
1010 Radix (25 分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number.Now for any pa...
2019-01-22 23:32:34 94
原创 1009 Product of Polynomials
1009 Product of Polynomials (25 分)This time, you are supposed to find A×B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines...
2019-01-22 21:09:39 90
原创 1008 Elevator
1008 Elevator (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 specified...
2019-01-22 20:45:09 131
原创 1007 Maximum Subsequence Sum
1007Maximum Subsequence Sum(25 分)Given a sequence ofKintegers {N1,N2, ...,NK}. A continuous subsequence is defined to be {Ni,Ni+1, ...,Nj} where1≤i≤j≤K. The Maximum Su...
2019-01-22 11:10:52 67
原创 1006 Sign In and Sign Out
1006 Sign In and Sign Out (25 分)At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the reco...
2019-01-21 19:34:56 106
原创 1005 Spell It Right
1005 Spell It Right (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 file...
2019-01-21 17:36:46 194 1
原创 1004 Counting Leaves
1004Counting Leaves(30 分)A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contains on...
2019-01-21 16:12:49 113
原创 1003 Emergency
1003 Emergency (25 分)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams...
2019-01-21 14:45:22 159
原创 最短路径(Dijkstra)算法实现
#include<iostream>#include<vector>#define INF 65536 ;using namespace std;typedef struct MyStruct TableEntre;typedef vector<TableEntre> Table ;struct MyStruct ...
2019-01-20 22:23:32 156
原创 java Swing编写图书管理系统
https://download.csdn.net/download/lannister_awalys_pay/10922877 空界面的图像 显示书籍时的样子添加书籍图片 书籍名字检索:
2019-01-17 12:21:38 2316
转载 数据结构--并查集的原理及实现
一,并查集的介绍 并查集(Union/Find)从名字可以看出,主要涉及两种基本操作:合并和查找。这说明,初始时并查集中的元素是不相交的,经过一系列的基本操作(Union),最终合并成一个大的集合。而在某次合并之后,有一种合理的需求:某两个元素是否已经处在同一个集合中了?因此就需要Find操作。并查集是一种 不相交集合 的数据结构,设有一个动态集合S={s1,s2,s3,.....sn...
2019-01-17 11:37:09 253
原创 最小生成树(Prim)算法实现
#include<iostream>#include<vector>#define INF 65563using namespace std;typedef struct MyStruct *node;typedef vector<node> Graph;struct MyStruct { int adjv; int value;...
2019-01-16 15:42:10 260
转载 Java桌面程序打包成exe可执行文件
前言:我们都知道Java可以将二进制程序打包成可执行jar文件,双击这个jar和双击exe效果是一样一样的,但感觉还是不同。其实将java程序打包成exe也需要这个可执行jar文件。准备:eclipse、exe4j(网上有软件和帐号下载)第一步,将java项目打包成可执行jar文件,首先看一下我的java project结构,Main.java是程序入口类,里面有main函数,co...
2019-01-15 09:17:52 345
转载 java实现文件保存到本地的方法
本篇介绍了java实现文件保存到本地的方法,具体代码如下:? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25...
2019-01-13 15:10:55 42325
转载 JAVA 读取图片储存至本地
// 构造URLURL url = new URL(endStr); // 打开URL连接URLConnection con = url.openConnection(); // 得到URL的输入流InputStream input = con.getInputStream();// 设置数据缓冲byte[] bs = new byte[1024 * 2];// 读取到的数据长度...
2019-01-13 11:52:04 1785
转载 JList基本用法
作者:he_chenjun 原文:https://blog.csdn.net/he_chenjun/article/details/9128965 JList是客户端还算比较常见的组件,偶尔也用得到,值得一学。从API可以看出,JList的构造方法有四种1、空的构造方法将创建一个空白的JList2、以对象数组的构造方法创建JList(Object[] listData),可...
2019-01-12 11:55:21 8754
原创 1002 A+B for Polynomials
1002 A+B for Polynomials (25 分)This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, a...
2019-01-12 11:28:48 174
转载 java基础的界面美化
作者:liuxiangyu鱼 原文:https://blog.csdn.net/dream_18/article/details/51857476 一、设置窗体背景图片:如果一个窗体上有几个面板此时,想要将窗体背景设置为自己想要的图片那么,首先将背景图片放在JLabel标签里第二步,将背景标签添加到JFram的LayeredPane面板里。第三步,设置背景标签的位置...
2019-01-12 11:19:37 1351
原创 1001 A+B Format
1001 A+B Format (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).Input Spe...
2019-01-12 08:54:45 136
原创 JTattoo.jar下载以及使用方法
substance.jar包和JTattoo.jar包的下载JTattoo.jar// 设置窗口的风格String outLookAndFeel ="com.jtattoo.plaf.bernstein.BernsteinLookAndFeel";try { UIManager.setLookAndFeel(outLookAndFeel);} catch (Exception...
2019-01-04 14:13:33 1897 1
转载 做出漂亮的Java界面--substance.jar的使用
一直以来都认为用Swing做出来的程序太难看了,但是又无可奈何,但现在好了,有了substance.jar,只需要在你的程序中添加几行简单的代码,就可以做出非常漂亮的界面来,如果不是亲眼看到,你也许不敢相信这是真的. 下面我就来介绍一下substance.jar的使用.1.下载substance.jar 现在最新的版本已经出到4.3了,而且更新很快 下载地址:https:/...
2019-01-04 13:33:44 1997
application.yml
2020-07-05
generator.rar
2020-07-05
学生管理系统SQl数据库.zip
2019-06-12
Java窗口美化包(substance.jar和JTattoo)
2019-01-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人