上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页
摘要: Tian Ji -- The Horse RacingTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 7895Accepted: 2446DescriptionHere is a famous story in Chinese history. That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play horse racing with the king and others. Bo 阅读全文
posted @ 2011-11-22 09:55 w0w0 阅读(198) 评论(0) 推荐(0)
摘要: BullseyeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 4201Accepted: 1971DescriptionA simple dartboard consists of a flat, circular piece of cork with concentric rings drawn on it. Darts are thrown at the board by players in an attempt to hit the center of the dartboard (the Bullseye). The 阅读全文
posted @ 2011-11-22 09:54 w0w0 阅读(298) 评论(0) 推荐(0)
摘要: Goldbach's ConjectureTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 26401Accepted: 10294DescriptionIn 1742, Christian Goldbach, a German amateur mathematician, sent a letter to Leonhard Euler in which he made the following conjecture: Every even number greater than 4 can be written as 阅读全文
posted @ 2011-11-22 09:53 w0w0 阅读(182) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ int matri[100][100]; int r_state[100]; int l_state[100]; int sum; int l_odd,r_odd; int l_temp,r_temp; int n; int i,j; while(1) { cin>>n; if(n==0) break; for(i=0;i<100;i++) { ... 阅读全文
posted @ 2011-11-22 09:52 w0w0 阅读(294) 评论(0) 推荐(0)
摘要: Humble NumbersTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7754Accepted: 3666DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first 20 humble numbers. W 阅读全文
posted @ 2011-11-22 08:46 w0w0 阅读(158) 评论(0) 推荐(0)
摘要: Binomial ShowdownTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 14828Accepted: 4549DescriptionIn how many ways can you choose k elements out of n elements, not taking order into account? Write a program to compute this number.InputThe input will contain one or more test cases. Each test ca 阅读全文
posted @ 2011-11-22 08:46 w0w0 阅读(127) 评论(0) 推荐(0)
摘要: LottoTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5350Accepted: 3401DescriptionIn the German Lotto you have to select 6 numbers from the set {1,2,...,49}. A popular strategy to play Lotto - although it doesn't increase your chance of winning - is to select a subset S containing k (k 阅读全文
posted @ 2011-11-22 08:45 w0w0 阅读(188) 评论(0) 推荐(0)
摘要: Moo VolumeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 15037Accepted: 4342DescriptionFarmer John has received a noise complaint from his neighbor, Farmer Bob, stating that his cows are making too much noise. FJ's N cows (1 <= N <= 10,000) all graze at various locations on a lon 阅读全文
posted @ 2011-11-22 08:44 w0w0 阅读(157) 评论(0) 推荐(0)
摘要: The Circumference of the CircleTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5444Accepted: 3531DescriptionTo calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't? You are given the cartesian coordinates of three non-c 阅读全文
posted @ 2011-11-22 08:44 w0w0 阅读(272) 评论(0) 推荐(0)
摘要: Does This Make Me Look Fat?Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 1964Accepted: 886DescriptionAs the host of a popular daytime television talk show, you are working through the details of an upcoming episode on dieting. Your guest is the controversial Dr. Kevorkian, who has recentl 阅读全文
posted @ 2011-11-22 08:43 w0w0 阅读(259) 评论(0) 推荐(0)
摘要: The KingTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 5115Accepted: 2845DescriptionOnce upon a time in a country far away lived a king and he had a big kingdom. He was a very clever king but he had one weakness -- he could count only up to three. Nevertheless, he did not consider this to 阅读全文
posted @ 2011-11-22 08:42 w0w0 阅读(204) 评论(0) 推荐(0)
摘要: Specialized Four-Digit NumbersTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 6187Accepted: 4469DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) n 阅读全文
posted @ 2011-11-22 08:41 w0w0 阅读(234) 评论(0) 推荐(0)
摘要: PyramidsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2118Accepted: 696Special JudgeDescriptionRecently in Farland, a country in Asia, a famous scientist Mr. Log Archeo has discovered ancient pyramids. But unlike those in Egypt and Central America, they have triangular (not rectangular) f 阅读全文
posted @ 2011-11-22 08:41 w0w0 阅读(188) 评论(0) 推荐(0)
摘要: ISBNTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 12940Accepted: 4507DescriptionFarmer John's cows enjoy reading books, and FJ has discovered that his cows produce more milk when they read books of a somewhat intellectual nature. He decides to update the barn library to replace all of 阅读全文
posted @ 2011-11-22 08:40 w0w0 阅读(217) 评论(0) 推荐(0)
摘要: Beauty ContestTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 17798Accepted: 5360DescriptionBessie, Farmer John's prize cow, has just won first place in a bovine beauty contest, earning the title 'Miss Cow World'. As a result, Bessie will make a tour of N (2 <= N <= 50,000 阅读全文
posted @ 2011-11-22 08:39 w0w0 阅读(241) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页