2019年2月13日

UVA948 Fibonaccimal Base【进制】

摘要: The well known Fibonacci sequence is obtained by starting with 0 and 1 and then adding the two last numbers to get the next one. For example the third 阅读全文

posted @ 2019-02-13 23:10 新海岛Blog 阅读(176) 评论(0) 推荐(0)

UVA10487 Closest Sums【暴力+二分】

摘要: Given is a set of integers and then a sequence of queries. A query gives you a number and asks to find a sum of two distinct numbers from the set, whi 阅读全文

posted @ 2019-02-13 21:59 新海岛Blog 阅读(66) 评论(0) 推荐(0)

POJ1188 HDU1417 UVA737 UVALive5299 Gleaming the Cubes【立方体交集】

摘要: "Gleaming the Cubes" Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 1461 Accepted: 782 Description As chief engineer of the Starship Inter 阅读全文

posted @ 2019-02-13 21:02 新海岛Blog 阅读(104) 评论(0) 推荐(0)

UVA10940 Throwing cards away II【数学规律+约瑟夫环】

摘要: Given is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The following operation is performed as long as t 阅读全文

posted @ 2019-02-13 19:41 新海岛Blog 阅读(108) 评论(0) 推荐(0)

UVA11461 Square Numbers【数学+前缀和】

摘要: A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are some square numbers. Given two numbers a and b you 阅读全文

posted @ 2019-02-13 18:26 新海岛Blog 阅读(118) 评论(0) 推荐(0)

UVA11428 Cubes【数学+二分】

摘要: Given a positive integer N you will have to find two positive integers x and y such that: N = x\^3 − y\^3 Input The input file contains at most 100 li 阅读全文

posted @ 2019-02-13 09:19 新海岛Blog 阅读(109) 评论(0) 推荐(0)

UVA11203 Can you decide it for ME?【水题】

摘要: As you should know, a formal system consists of a set of axioms and set of inference or production rules . Theorems, in general, are results that can 阅读全文

posted @ 2019-02-13 07:38 新海岛Blog 阅读(224) 评论(0) 推荐(0)

UVA11089 Fi-binary Number【数学规律】

摘要: A Fi binary number is a number that contains only 0 and 1. It does not contain any leading 0. And also it does not contain 2 consecutive 1. The first 阅读全文

posted @ 2019-02-13 00:00 新海岛Blog 阅读(112) 评论(0) 推荐(0)

导航

// ... runAll: function() { this.resetPreCode(); hljs.initHighlightingOnLoad(); // 重新渲染,添加语法高亮 hljs.initLineNumbersOnLoad(); // 为代码加上行号 } // ...