07 2015 档案

《C/C++/Java/Pascal 程序设计基础》习题集 解题4
摘要:循环-19. 币值转换(20)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈建海(浙江大学)输入一个整数(位数不超过9位)代表一个人民币值(单位为元),请转换成财务要求的大写中文格式。如23108元,转换后变成“贰万叁仟壹百零捌”元。为了简化输出,... 阅读全文

posted @ 2015-07-29 19:34 Tob__yuhong 阅读(205) 评论(0) 推荐(0)

《C/C++/Java/Pascal 程序设计基础》习题集 解题3
摘要:数组-06. 找出不是两个数组共有的元素(20)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者张彤彧(浙江大学)给定两个整型数组,本题要求找出不是两者共有的元素。输入格式:输入分别在2行中给出2个整型数组,每行先给出正整数N(#include#inc... 阅读全文

posted @ 2015-07-29 18:00 Tob__yuhong 阅读(909) 评论(0) 推荐(0)

《C/C++/Java/Pascal 程序设计基础》习题集 解题2
摘要:题目链接:http://www.patest.cn/contests/basic-programming ,总体说来都是基础题,节省时间,只做了分值20的题目。解题1链接:http://blog.csdn.net/wyh7280/article/details/47123547循环-08. 二分法求... 阅读全文

posted @ 2015-07-29 15:35 Tob__yuhong 阅读(551) 评论(0) 推荐(0)

《C/C++/Java/Pascal 程序设计基础》习题集 解题1
摘要:题目链接:http://www.patest.cn/contests/basic-programming,总体说来都是基础题,节省时间,只做了分值20的题目。分支-18. 求一元二次方程的根(20)时间限制200 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈建海... 阅读全文

posted @ 2015-07-29 12:53 Tob__yuhong 阅读(922) 评论(0) 推荐(0)

中国大学MOOC-翁恺-C语言程序设计习题集 08-2 到 10-2
摘要:08-2. 求矩阵的局部极大值(15)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者徐镜春(浙江大学)给定M行N列的整数矩阵A,如果A的非边界元素A[i][j]大于相邻的上下左右4个元素,那么就称元素A[i][j]是矩阵的局部极大值。本题要求给定矩阵... 阅读全文

posted @ 2015-07-29 02:02 Tob__yuhong 阅读(429) 评论(0) 推荐(0)

中国大学MOOC-翁恺-C语言程序设计习题集 10-3 到 11-1
摘要:10-3. 字符串逆序(15)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者白洪欢(浙江大学)输入一个字符串,对该字符串进行逆序,输出逆序后的字符串。输入格式:输入在一行中给出一个不超过80个字符长度的、以回车结束的非空字符串。输出格式:在一行中输出... 阅读全文

posted @ 2015-07-29 00:46 Tob__yuhong 阅读(810) 评论(0) 推荐(0)

中国大学MOOC-翁恺-C语言程序设计习题集 07-0 到 08-1
摘要:07-0. 写出这个数 (20)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue读入一个自然数n,计算其各位数字之和,用汉语拼音写出和的每一位数字。输入格式:每个测试输入包含1个测试用例,即给出自然数n的值。这里保证n小于10100。... 阅读全文

posted @ 2015-07-28 20:33 Tob__yuhong 阅读(708) 评论(0) 推荐(0)

中国大学MOOC-翁恺-C语言程序设计习题集 05-0 到 06-3
摘要:05-0. 求序列前N项和(15)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者张彤彧(浙江大学)本题要求编写程序,计算序列 2/1+3/2+5/3+8/5+... 的前N项之和。注意该序列从第2项起,每一项的分子是前一项分子与分母的和,分母是前一项... 阅读全文

posted @ 2015-07-28 19:21 Tob__yuhong 阅读(1030) 评论(0) 推荐(0)

中国大学MOOC-翁恺-C语言程序设计习题集 02-0 到 04-4
摘要:02-0. 整数四则运算(10)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者乔林(清华大学)本题要求编写程序,计算2个正整数的和、差、积、商并输出。题目保证输入和输出全部在整型范围内。输入格式:输入在一行中给出2个正整数A和B。输出格式:在4行中按... 阅读全文

posted @ 2015-07-28 15:51 Tob__yuhong 阅读(3350) 评论(0) 推荐(0)

字符串-07. 说反话-加强版 (20)
摘要:字符串-07. 说反话-加强版 (20)时间限制200 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越(浙江大学)给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。输入格式:测试输入包含一个测试用例,在一行内给出总长度不超过500 000的字符串。字符... 阅读全文

posted @ 2015-07-28 11:43 Tob__yuhong 阅读(234) 评论(0) 推荐(0)

pat 1020. Tree Traversals (25)
摘要:1020. Tree Traversals (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive i... 阅读全文

posted @ 2015-07-27 01:52 Tob__yuhong 阅读(129) 评论(0) 推荐(0)

二叉搜索树的前序遍序序列 仿后序
摘要:实现功能:给定一个序列,判断是否是一个搜索树的前序序列,如果是输出"Yes",反之输出"NO"。这是后序遍历链接:http://blog.csdn.net/wyh7280/article/details/47067603要解决的问题和题目:http://ac.jobdu.com/problem.ph... 阅读全文

posted @ 2015-07-26 15:03 Tob__yuhong 阅读(187) 评论(0) 推荐(0)

九度 题目1367:二叉搜索树的后序遍历序列
摘要:题目链接:1367题目描述:输入一个整数数组,判断该数组是不是某二叉搜索树的后序遍历的结果。如果是则输出Yes,否则输出No。假设输入的数组的任意两个数字都互不相同。输入:每个测试案例包括2行:第一行为1个整数n(1#include#include#include#include#includeus... 阅读全文

posted @ 2015-07-26 14:04 Tob__yuhong 阅读(187) 评论(0) 推荐(0)

pat 1043. Is It a Binary Search Tree (25)
摘要:1043. Is It a Binary Search Tree (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA Binary Search Tree (BST) is recursively defined as a ... 阅读全文

posted @ 2015-07-26 13:22 Tob__yuhong 阅读(158) 评论(0) 推荐(0)

pat 1069. The Black Hole of Numbers (20)
摘要:1069. The Black Hole of Numbers (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueFor any 4-digit integer except the ones with all the dig... 阅读全文

posted @ 2015-07-24 15:17 Tob__yuhong 阅读(222) 评论(0) 推荐(0)

pat 1055. The World's Richest (25)
摘要:1055. The World's Richest (25)时间限制400 ms内存限制128000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueForbes magazine publishes every year its list of billionaires... 阅读全文

posted @ 2015-07-24 12:46 Tob__yuhong 阅读(193) 评论(0) 推荐(0)

pat 1028. List Sorting (25)
摘要:1028. List Sorting (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueExcel can sort records according to any column. Now you are supposed ... 阅读全文

posted @ 2015-07-24 11:12 Tob__yuhong 阅读(185) 评论(0) 推荐(0)

NOJ2045 罗马PK
摘要:题目链接:点击打开链接罗马PK时间限制(普通/Java):1000 MS/2000 MS 运行内存限制 : 65536 KByte总提交 : 196 测试通过 : 49比赛描述一天,机智的罗老师和小马哥想比试以下到底谁更机智,于是他们找到了一个很长的数列串,决定看谁能更快地算出这条长串... 阅读全文

posted @ 2015-07-24 02:35 Tob__yuhong 阅读(211) 评论(0) 推荐(0)

pat 1007. Maximum Subsequence Sum (25)
摘要:1007. Maximum Subsequence Sum (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a sequence of K integers { N1, N2, ..., NK}. A conti... 阅读全文

posted @ 2015-07-24 02:04 Tob__yuhong 阅读(234) 评论(0) 推荐(0)

pat 1077. Kuchiguse (20)
摘要:1077. Kuchiguse (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者HOU, QimingThe Japanese language is notorious for its sentence ending particles. ... 阅读全文

posted @ 2015-07-23 21:10 Tob__yuhong 阅读(163) 评论(0) 推荐(0)

pat 1093. Count PAT's (25)
摘要:1093. Count PAT's (25)时间限制120 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CAO, PengThe stringAPPAPTcontains twoPAT's as substrings. The first one is form... 阅读全文

posted @ 2015-07-23 19:18 Tob__yuhong 阅读(165) 评论(0) 推荐(0)

pat 1019. General Palindromic Number (20)
摘要:1019. General Palindromic Number (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwa... 阅读全文

posted @ 2015-07-23 17:49 Tob__yuhong 阅读(176) 评论(0) 推荐(0)

pat 1015. Reversible Primes (20)
摘要:1015. Reversible Primes (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAreversible primein any number system is a prime whose "reverse"... 阅读全文

posted @ 2015-07-23 01:01 Tob__yuhong 阅读(177) 评论(0) 推荐(0)

pat 1023. Have Fun with Numbers (20)
摘要:1023. Have Fun with Numbers (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueNotice that the number 123456789 is a 9-digit number consist... 阅读全文

posted @ 2015-07-22 23:40 Tob__yuhong 阅读(196) 评论(0) 推荐(0)

pat 1029. Median (25)
摘要:1029. Median (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven an increasing sequence S of N integers, themedianis the number at the... 阅读全文

posted @ 2015-07-22 20:57 Tob__yuhong 阅读(162) 评论(0) 推荐(0)

pat 1040. Longest Symmetric String (25)
摘要:1040. Longest Symmetric String (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a string, you are supposed to output the length of ... 阅读全文

posted @ 2015-07-22 20:30 Tob__yuhong 阅读(127) 评论(0) 推荐(0)

pat 1037. Magic Coupon (25)
摘要:1037. Magic Coupon (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe magic shop in Mars is offering some magic coupons. Each coupon ha... 阅读全文

posted @ 2015-07-22 18:40 Tob__yuhong 阅读(132) 评论(0) 推荐(0)

pat 1058. A+B in Hogwarts (20)
摘要:1058. A+B in Hogwarts (20)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIf you are a fan of Harry Potter, you would know the world of magic... 阅读全文

posted @ 2015-07-21 23:55 Tob__yuhong 阅读(155) 评论(0) 推荐(0)

pat 1083. List Grades (25)
摘要:1083. List Grades (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a list of N student records with name, ID and grade. You are sup... 阅读全文

posted @ 2015-07-21 18:38 Tob__yuhong 阅读(152) 评论(0) 推荐(0)

pat 1054. The Dominant Color (20)
摘要:1054. The Dominant Color (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueBehind the scenes in the computer's memory, color is always tal... 阅读全文

posted @ 2015-07-21 14:28 Tob__yuhong 阅读(139) 评论(0) 推荐(0)

pat 1042. Shuffling Machine (20)
摘要:1042. Shuffling Machine (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShuffling is a procedure used to randomize a deck of playing car... 阅读全文

posted @ 2015-07-21 11:30 Tob__yuhong 阅读(134) 评论(0) 推荐(0)

pat 1061. Dating (20)
摘要:1061. Dating (20)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSherlock Holmes received a note with some strange strings: "Let's date! 3485... 阅读全文

posted @ 2015-07-21 01:16 Tob__yuhong 阅读(162) 评论(0) 推荐(0)

pat 1048. Find Coins (25)
摘要:1048. Find Coins (25)时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva loves to collect coins from all over the universe, including some ot... 阅读全文

posted @ 2015-07-20 22:12 Tob__yuhong 阅读(106) 评论(0) 推荐(0)

Matlab 层次分析法 求解权重矩阵
摘要:注:应用程序时,只需要将评判矩阵,也就是判断矩阵,输入到程序中即可,即修改A矩阵,其他地方都不需要修改。 首先进行对矩阵一致性的判断,只有通过一致性检验的矩阵,得到的权重才更可靠,涉及较少变量(如2个变量)直接手算。Matlab代码如下:% %AHP权重计算MATLAB程序% %数据读入clc... 阅读全文

posted @ 2015-07-20 13:29 Tob__yuhong 阅读(2235) 评论(0) 推荐(0)

C++如何连续输入多个可能含空格的字符串
摘要:可以尝试如下方案,亲测可行。int main(){ string s1,s2; while(getline(cin,s1)&&getline(cin,s2)) { cout<<s1<<endl; cout<<s2<<endl; } retur... 阅读全文

posted @ 2015-07-19 19:07 Tob__yuhong 阅读(959) 评论(0) 推荐(0)

pat 1050. String Subtraction (20)
摘要:1050. String Subtraction (20)时间限制10 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven two strings S1and S2, S = S1- S2is defined to be the remai... 阅读全文

posted @ 2015-07-19 18:50 Tob__yuhong 阅读(178) 评论(0) 推荐(0)

pat 1041. Be Unique (20)
摘要:1041. Be Unique (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueBeing unique is so important to people on Mars that even their lottery i... 阅读全文

posted @ 2015-07-19 16:51 Tob__yuhong 阅读(132) 评论(0) 推荐(0)

pat 1084. Broken Keyboard (20)
摘要:1084. Broken Keyboard (20)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueOn a broken keyboard, some of the keys are worn out. So when you t... 阅读全文

posted @ 2015-07-19 15:12 Tob__yuhong 阅读(142) 评论(0) 推荐(0)

pat 1092. To Buy or Not to Buy (20)
摘要:1092. To Buy or Not to Buy (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva would like to make a string of beads with her favorite co... 阅读全文

posted @ 2015-07-19 14:36 Tob__yuhong 阅读(166) 评论(0) 推荐(0)

pat 1070. Mooncake (25)
摘要:1070. Mooncake (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueMooncake is a Chinese bakery product traditionally eaten during the Mid-A... 阅读全文

posted @ 2015-07-19 11:21 Tob__yuhong 阅读(176) 评论(0) 推荐(0)

pat 1046. Shortest Distance (20)
摘要:1046. Shortest Distance (20)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe task is really simple: given N exits on a highway which form... 阅读全文

posted @ 2015-07-19 10:42 Tob__yuhong 阅读(372) 评论(0) 推荐(0)

pat 1036. Boys vs Girls (25)
摘要:1036. Boys vs Girls (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time you are asked to tell the difference between the lowest gr... 阅读全文

posted @ 2015-07-18 15:23 Tob__yuhong 阅读(164) 评论(0) 推荐(0)

pat 1027. Colors in Mars (20)
摘要:1027. Colors in Mars (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YuePeople in Mars represent the colors in their computers in a similar... 阅读全文

posted @ 2015-07-18 00:15 Tob__yuhong 阅读(224) 评论(0) 推荐(0)

pat 1035. Password (20)
摘要:1035. Password (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo prepare for PAT, the judge sometimes has to generate random passwords ... 阅读全文

posted @ 2015-07-17 20:55 Tob__yuhong 阅读(117) 评论(0) 推荐(0)

pat 1006. Sign In and Sign Out (25)
摘要:1006. 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 ... 阅读全文

posted @ 2015-07-17 20:12 Tob__yuhong 阅读(172) 评论(0) 推荐(0)

pat 1031. Hello World for U (20)
摘要:1031. Hello World for U (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven any string of N (>=5) characters, you are asked to form th... 阅读全文

posted @ 2015-07-17 19:29 Tob__yuhong 阅读(177) 评论(0) 推荐(0)

pat 1011. World Cup Betting (20)
摘要:1011. World Cup Betting (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, football fans the world ov... 阅读全文

posted @ 2015-07-17 15:47 Tob__yuhong 阅读(140) 评论(0) 推荐(0)

pat 1005. Spell It Right (20)
摘要:1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is to compute the sum of ... 阅读全文

posted @ 2015-07-17 13:23 Tob__yuhong 阅读(144) 评论(0) 推荐(0)

pat 1002. A+B for Polynomials (25)
摘要:1002. A+B for Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A+B where A and B are two ... 阅读全文

posted @ 2015-07-17 12:02 Tob__yuhong 阅读(164) 评论(0) 推荐(0)

pat 1008. Elevator (20)
摘要:1008. Elevator (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is... 阅读全文

posted @ 2015-07-17 10:38 Tob__yuhong 阅读(141) 评论(0) 推荐(0)

pat 1001. A+B Format (20)
摘要:1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the d... 阅读全文

posted @ 2015-07-17 06:42 Tob__yuhong 阅读(129) 评论(0) 推荐(0)

算法分析与设计实验四 密码算法
摘要:这次实验放在期末考的时间附近,实验内容也很简单,老师实验报告里基本都给了,这里贴一下。实验目的 了解现代密码学的基本原理和数论础知识,掌握非对称体制著名表 了解现代密码学的基本原理和数论础知识,掌握非对称体制著名表 RSARSARSA加密算法 的工作原理和流程,并 设计实现一个简单的密钥系统 。实验... 阅读全文

posted @ 2015-07-17 06:38 Tob__yuhong 阅读(254) 评论(0) 推荐(0)

蒙特卡洛法(随即取样法) 数模 笔记
摘要:内容:简介、举例_________________________________________________________________________________________________________________________________简介:蒙特卡洛方法也称为计... 阅读全文

posted @ 2015-07-09 11:31 Tob__yuhong 阅读(469) 评论(0) 推荐(0)

【数模学习】Matlab 符号微积分 计算微分、雅可比矩阵、不定积分与定积分、求解微分方程
摘要:1.计算微分 函数diff可以用来计算符号表达式的微分,其调用格式如下: df=diff(f,n); 参数说明:df是微分运算的结果。f是输入的表达式,n是求导的次数,其默认值是1. 举例: >>g = diff(sym(sin(x)),1); g = cos(x)2.计算雅可比矩... 阅读全文

posted @ 2015-07-02 21:58 Tob__yuhong 阅读(901) 评论(0) 推荐(0)

导航