
数论
文章平均质量分 88
Zeny_L
:-
展开
-
UVA 568 (13.07.28)
Just the Facts The expression N!, read as ``N factorial," denotes the product of the firstN positive integers, whereN is nonnegative. So, for example,NN!011原创 2013-07-29 21:29:29 · 853 阅读 · 0 评论 -
UVA 408 (13.07.28)
Uniform Generator Computer simulations often require random numbers. One way to generatepseudo-random numbers is via a function of the formwhere `` " is the modulus operator.S原创 2013-07-29 21:33:13 · 845 阅读 · 0 评论 -
UVA 10110 (13.07.26)
Light,more lightThe ProblemThere is man named "mabu" for switching on-off light in our University.He switches on-off the lights in a corridor. Every bulb has its own toggle switch. That is, if it原创 2013-07-26 12:45:48 · 1075 阅读 · 0 评论 -
UVA 350 (13.07.26)
Pseudo-Random Numbers Computers normally cannot generate really random numbers, but frequentlyare used to generate sequences of pseudo-random numbers. These are generatedby some algorithm,原创 2013-07-27 11:26:31 · 908 阅读 · 0 评论 -
UVA 10879(13.07.26)
Problem BCode RefactoringTime Limit: 2 seconds"Harry, my dream is a code waiting to bebroken. Break the code, solve the crime."Agent CooperSeveral algorithms in modern crypto原创 2013-07-27 11:35:12 · 670 阅读 · 0 评论 -
UVA 550 (13.07.26)
Multiplying by Rotation Warning: Not all numbers in this problem are decimal numbers!Multiplication of natural numbers in general is a cumbersome operation. In somecases however the原创 2013-07-27 11:21:02 · 802 阅读 · 0 评论 -
UVA 571 (13.11.06)
Jugs In the movie ``Die Hard 3", Bruce Willis and Samuel L. Jackson were confrontedwith the followingpuzzle. They were given a 3-gallon jug and a 5-gallon jug and were asked tofill the 5-g原创 2013-11-06 19:46:59 · 796 阅读 · 0 评论