- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 [usaco][舞会灯] party lamps
这是我做过的题目中用时间最长的一个题目原文:--------------------------------------------Party LampsIOI 98 To brighten up the gala dinner of the IOI'98 w
2011-07-31 12:06:32 628
原创 [usaco]罗马数字
Preface NumberingA certain book's prefaces are numbered in upper case Roman numerals. Traditional Roman numeral values use a single letter
2011-07-30 19:11:51 666
原创 [usaco] 海明码
Hamming CodesRob Kolstad Given N, B, and D: Find a set of N codewords (1 <= N <= 64), each of length B bits (1 <= B <= 8), such that eac
2011-07-29 21:02:11 1574
原创 [usaco] castle
IOI'94 - Day 1 In a stroke of luck almost beyond imagination, Farmer John was sent a ticket to the Irish Sweepstakes (really a lottery) for
2011-07-29 13:09:55 523
原创 【usaco】 checker
本题的要点在于位运算Checker ChallengeExamine the 6x6 checkerboard below and note that the six checkers are arranged on the board so that one and only
2011-07-26 20:26:56 510
原创 [usaco]超级素数 superprime
USER: Ma yunlei [yunleis2]TASK: sprimeLANG: C++Compiling...Compile: OKExecuting... Test 1: TEST OK [0.000 secs, 3028 KB] Test 2: TEST OK
2011-07-24 15:16:11 726
原创 [usaco] 回数中的素数Prime Palindromes
题目给出一个下限,一个上限,要求求出之间的所有既是回数又是素数的数。下边是原文描述:Prime PalindromesThe number 151 is a prime palindrome because it is both a prime number and a pali
2011-07-24 12:00:03 1199
原创 c++中短路求值的妙用
c++中有这样一个特性,即对于与、或运算,如果能够通过第一个表达式计算出整个表达式的真值,那么就不会再去计算第二个表达式。比如或运算a || b,如果a的值是true,那么整个表达式也肯定是true,程序不会去计算第二个表达式。与运算a&&b,如果a的值是false,那么整个表达
2011-07-23 20:26:46 1822 2
原创 [usaco] Number Triangles
Number TrianglesConsider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a
2011-07-21 21:19:01 890
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人