- 博客(24)
- 收藏
- 关注
原创 A1028. List Sorting (25)
时间限制 200 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueExcel can sort records according to any column. Now you are supposed to imitate this funct
2016-12-31 12:18:46 177
原创 A1062. Talent and Virtue (25)
时间限制 200 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, LiAbout 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talk
2016-12-30 12:30:57 250
原创 A1012. The Best Rank (25)
时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueTo evaluate the performance of our first year CS majored students, we consider their grade
2016-12-29 10:01:07 188
原创 A1036. Boys vs Girls (25)
时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueThis time you are asked to tell the difference between the lowest grade of all the male st
2016-12-28 12:12:42 172
原创 A1006. Sign In and Sign Out (25)
时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueAt the beginning of every day, the first person who signs in the computer room w
2016-12-27 09:41:49 232
原创 A1011. World Cup Betting (20)
时间限制 400 ms内存限制 65536 kB代码长度限制 16000 B判题程序 Standard 作者 CHEN, YueWith the 2010 FIFA World Cup running, football fans the world over were becoming increasin
2016-12-27 09:37:42 223
原创 A1008. Elevator (20)
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is ma
2016-12-25 23:50:32 176
原创 求最大公约数
利用欧几里得算法,gcd(a,b)=gcd(b,a mod b) (a>b)直到一个数为0,另一个非0即为最大公约数#includeusing namespace std;int gcd(int a,int b){ int max=a>b?a:b; int min=a<b?a:b; if(min==0) return max; else return gcd(min,max
2016-12-19 22:51:04 234
原创 构建一个栈,并返回其最小值
import java.util.*;class getMin1{ private Stack stackData; private Stack stackMin; public getMin1(){ this.stackData=new Stack (); this.stackMin=new Stack(); } public void push(int numData)
2016-12-19 16:31:26 282
原创 telnet实验报告
Telnet远程登陆实验实验目的学习Telnet远程登录的原理掌握Telnet远程登的方法实验环境操作机:Windows 10虚拟机工作环境:VMware workstation目标机1:Windows Server 2003 其ip:192.168.10.128目标机2:Windows Server 2003 其ip:192.168.10.131实验内容Part1 :teln
2016-12-17 00:16:33 12270
原创 A1005. 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 contains one test case. E
2016-12-15 12:41:51 181
原创 A1001. 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).InputEach input file contains
2016-12-14 23:50:53 258
原创 A 1121. Damn Single (25)
时间限制300 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yue"Damn Single (单身狗)" is the Chinese nickname for someone who is being single.
2016-12-11 22:38:58 312
原创 A1120. Friend Numbers (20)
1120. Friend Numbers (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTwo integers are called "friend numbers" if
2016-12-11 22:28:45 288
原创 常见数据结构
//1.链表struct node{//链表结点 int data; node* next;};//创建链表node* create(int Array[]){ node * p,* pre,*head; head=new node;//创建头结点,new相当于malloc; head->next=NULL; pre=head; for(int i=0;i<5;i++)
2016-12-09 00:14:43 437
原创 A1020. Tree Traversals (25)
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the corr
2016-12-06 22:39:51 162
原创 A1091. Acute Stroke (30)
One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI slice, your job is to ca
2016-12-05 22:51:29 233
原创 A1103. Integer Factorization (30)
The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program to find the K-P factorization of N for any positive
2016-12-05 18:11:01 229
原创 A1032. Sharing (25)
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the same suffix. For example,
2016-12-03 22:28:15 268
原创 A1056. Mice and Rice (25)
Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each mouse is to eat as much rice
2016-12-02 20:08:18 161
原创 1065. A+B and C (64bit) (20)
Given three integers A, B and C in [-263, 263], you are supposed to tell whether A+B > C.Input Specification:The first line of the input gives the positive number of test cases, T (<=10). Then T test c
2016-12-02 17:02:55 274
原创 A1046. Shortest Distance (20)
The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file contains o
2016-12-02 16:23:33 215
原创 A1042. Shuffling Machine (20)
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid “inside jobs” where employees collaborate with gamblers
2016-12-02 15:23:43 280
原创 1046. 划拳(15)
时间限制 400 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue 划拳是古老中国酒文化的一个有趣的组成部分。酒桌上两人划拳的方法为:每人口中喊出一个数字,同时用手比划出一个数字。如果谁比划出的数字正好等于两人喊出的数字之和,谁就赢了,输家罚一杯酒。两人同赢或两人同输则继续下一轮,直到唯一的赢家出现。下面给出甲、乙
2016-12-01 00:07:38 164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人