
---------ZJU----OJ--------
黎曼猜想·
剑之所至,心之所往~
展开
-
ZOJ 1164 Software CRC
You work for a company which uses lots of personal computers. Your boss, Dr Penny Pincher, has wanted to link the computers together for some time but has been unwilling to spend any money on the Ethe原创 2018-01-21 15:34:03 · 610 阅读 · 0 评论 -
YTU.3209: 矩阵输出
3209: 矩阵输出Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 43 Solved: 21[Submit][Status][Web Board]Description输入n个整数,输出由这些整数组成的n行矩阵。Input第一行输入一个正整数N(N<=20),表示后面要输入的整数个数。下面依次输入N个整数。Output以输入的整数为基础,输出...原创 2018-02-11 22:21:12 · 772 阅读 · 0 评论 -
ZOJ 1962 How Many Fibs?
Recall the definition of the Fibonacci numbers: f1 := 1 f2 := 2 fn := fn-1 + fn-2 (n >= 3) Given two numbers a and b, calculate how many Fibonacci numbers are in the range [a, b]. InputThe ...原创 2018-02-11 21:21:04 · 549 阅读 · 0 评论 -
ZOJ 1205 Martian Addition
In the 22nd Century, scientists have discovered intelligent residents live on the Mars. Martians are very fond of mathematics. Every year, they would hold an Arithmetic Contest on Mars (ACM). The t...原创 2018-02-11 20:20:35 · 577 阅读 · 0 评论 -
ZOJ 1244 Definite Values
A common error in programming is to use variables that have not been initialized before. For example, in C and C++, all variables have an indefinite value after declaration - their value can be anythi原创 2018-01-28 19:13:16 · 440 阅读 · 0 评论 -
ZOJ 2727 List the Books
Jim is fond of reading books, and he has so many books that sometimes it's hard for him to manage them. So he is asking for your help to solve this problem. Only interest in the name, press year and原创 2018-02-03 16:26:01 · 585 阅读 · 0 评论 -
ZOJ 1174 Skip Letter Code
Romeo and Juliet are college students in the city of Verona and are in love with each other. Unfortunately, both their families are not very glad with this fact. They are trying to prevent any attempt原创 2018-02-03 15:46:03 · 730 阅读 · 0 评论 -
ZOJ 1170 String Matching
It's easy to tell if two words are identical - just check the letters. But how do you tell if two words are almost identical? And how close is "almost"? There are lots of techniques for approximate原创 2018-02-03 15:11:42 · 716 阅读 · 0 评论 -
ZOJ 1241 Geometry Made Simple
Mathematics can be so easy when you have a computer. Consider the following example. You probably know that in a right-angled triangle, the length of the three sides a, b, c (where c is the longest si原创 2018-01-27 14:34:58 · 494 阅读 · 0 评论 -
ZOJ 1209 April Fool's Joke
High on the wall of the church tower in a small village in Transylvania is an analog clock. It has an hour hand and a minute hand and a conventional 12-hour dial. The clock's mechanism advances both h原创 2018-01-27 10:45:52 · 645 阅读 · 0 评论 -
ZOJ 1200 Mining
A mining base needs to build some robots to collect at least 10000 units of resource. Each robot will start from the base, reach the diggings in S minutes, work for W minutes, and then take C units of原创 2018-01-21 18:51:17 · 836 阅读 · 0 评论 -
ZOJ 1195 Blowing Fuses
Maybe you are familiar with the following situation. You have plugged in a lot of electrical devices, such as toasters, refrigerators, microwave ovens, computers, stereos, etc, and have them all runni原创 2018-01-21 16:41:15 · 603 阅读 · 0 评论 -
ZOJ 1168 Function Run Fun
We all love recursion! Don't we? Consider a three-parameter recursive function w(a, b, c): if a 1 if a > 20 or b > 20 or c > 20, then w(a, b, c) returns: w(20, 20, 20) if a w(a, b, c-原创 2018-01-21 16:13:10 · 491 阅读 · 0 评论 -
ZOJ 1167 Trees on the Level
Trees are fundamental in many branches of computer science. Current state-of-the art parallel computers such as Thinking Machines' CM-5 are based on fat trees. Quad- and octal-trees are fundamenta...原创 2018-02-12 14:33:26 · 561 阅读 · 0 评论