Given a date, ask the day of the week ~~
Question Link
This problem has been plagued for a long time ~~ Later I found a standard routine,
Determine the week (as the base point) of a date, and calculate the number of days when the data to be
This question requires the knowledge of troubleshooting, and it won't happen at the beginning. Then I went to the Internet to find information and I got rid of it. Haha.
For more information, see my blog: http://blog.folyd.com/archives/39.
//
This question also requires the knowledge of error sorting.
If the answer to a question is only half or more correct, the answer is to pass the question. In other words, the answer is half or more right, and all the other answers are wrong.
Largest Submatrix of All 1's
Time Limit:5000 MS
Memory Limit:131072 K
Total Submissions:4546
Accepted:1700
Case Time Limit:2000 MS
Description
GivenM--N(0, 1)-matrix, of all its submatrices of all 1's
Sumsets
Time Limit:2000 MS
Memory Limit:200000 K
Total Submissions:10974
Accepted:4419
DescriptionFarmer John commanded his cows to search for different sets of numbers that sum to a given number. the cows use
Coins
Time Limit:3000 MS
Memory Limit:30000 K
Total Submissions:25745
Accepted:8717
DescriptionPeople in Silverland use coins. they have coins of value A1, A2, a3... an Silverland dollar. one day Tony opened
Bridging signals
Time Limit:1000 MS
Memory Limit:10000 K
Total Submissions:9454
Accepted:5177
Description'Oh no, they 've done it again ', cries the chief designer at the Waferland chip factory. once more the
Except for being out of bounds, the rest are like playing games.
Idea: There are several notes:
(1) If the same point is used to determine whether the offset can be offset, the answer should be:
(2) If the two points are not equal
(3) It won't work
Question Link
Re-coding the dictionary tree will have a deeper impression on the dictionary tree. It turned out to be a space for direct and dynamic development. I think this method is very troublesome, you can use the known bucket to retrieve the
The Peanuts
Time Limit:1000 MS
Memory Limit:30000 K
Total Submissions:6863
Accepted:2834
DescriptionMr. robinson and his pet monkey Dodo love peanuts very much. one day while they were having a walk on a
Templates can be easily used
Directly write the idea on the template ~~
Convert the number of x to n to m.
Convert x of the n-base number to the decimal number, and then convert the 10-base number to the m-base number.
The final result is obtained:
Question Link
Returns the number of days in two years.
Just set the template directly.
Calculate the number of days from two years to 0 years to 0 months, respectively, and subtract the absolute value.
Write template
/*******************************
Question Link
The question is that each warrior has a capacity value, and the evil dragon has multiple heads. A warrior's capacity value must be greater than the capacity value of one head of the evil dragon, so that one head can be cut down, A
B. God Create Math
There is a saying: computer was the crystallizationof men 'intelligence, but math is fromgod. Today, god also sends us a problem.
Sin (n! * [Ln (n)] * fib (n) % 2012)
Some explanations:
In sin (x), x is a radian.
0! = 1, n! = (N-
Question Link
The product of all numbers in the first set is less than zero (cost
The product of all numbers in the second set is greater than zero (Priority> limit 0 ).
The product of all numbers in the third set is equal to zero.
Each
Question Link
This is a question I found from codeforce:
It is the simulation. Pay attention to the calculation of edge mod so that int ~~ will not be cracked ~~
# Include int n; int judge (int num) {int tmp = 1, I; for (I = 1; I
Our team did not receive the prize.
This idea is absent in the third question (108.
However ~~~ Amount ~~~~~ After the game, I want to put myself down ~~ I also advise Captain YS to put it down ~~~ Card question is not his responsibility ~~ It's
BZOJ squatted and I found a lot of OJ to find the maintenance series ~ SPOJ seems to be slow ~ I am looking for someone else's AC program on BZOJ and it's actually TLE on SPOJ ~ Added read optimization or TLE ~ Region ~ What is this ~ Today, I
The question is to ship K goods to point N from point 1 .. maximum capacity and unit fee per edge... the cost of one route is calculated as a * x ^ 2 .. a is the unit fee for road change .. x indicates the carrying cargo weight... ask about the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service