- 博客(16)
- 资源 (3)
- 收藏
- 关注
原创 hdu3892 Common Roots 最大取模公因式
We have many polynomials modulo p (p is a prime number). An interesting issue would be to determine whether they have some roots in common. Notice roots we mention here are integers in modulo p system
2014-06-30 19:41:58 636
原创 uva11916 - Emoogle Grid 网格涂色
Emoogle Grid You have to color an M x N (1M,N108) two dimensional grid. You will be providedK (2K108) different colors to do so. You will also be provided a list of B (0B500)list
2014-06-29 21:58:45 744
原创 uva11754 - Code Feat 枚举 中国剩余定理
Hooray! Agent Bauer has shot the terrorists, blown upthe bad guy base, saved the hostages, exposed the moles in the government,prevented an environmental catastrophe, and found homes for three orphan
2014-06-29 19:56:25 485
原创 hdu3466 Proud Merchants 0-1背包变形
Problem DescriptionRecently, iSea went to an ancient country. For such a long time, it was the most wealthy and powerful kingdom in the world. As a result, the people in this country are still very
2014-06-29 18:21:42 389
原创 uva10692 - Huge Mods poj2164: Remainder Calculator 指数循环节
Problem XHuge ModInput: standard inputOutput: standard outputTime Limit: 1 secondThe operator for exponentiation is different from the addition, subtraction, multiplication or division ope
2014-06-27 20:54:10 736
原创 uva1069 - Always an integer
Combinatorics is a branch of mathematics chiefly concerned with counting discrete objects. For instance, how many ways can you pick two people out of a crowd ofn people? Into how many regions can yo
2014-06-26 18:35:14 671
原创 uva10237 - Bishops 互不攻击的象
Problem BBishopsInput: standard inputOutput: standard outputTime Limit: 4 secondsMemory Limit: 32 MB A bishop is a piece used in thegame of chess which is played on a board of squa
2014-06-24 19:47:20 1118
原创 uva11481 - Arrange the Numbers N个数前M个错排
Consider this sequence {1, 2, 3, … , N}, as a initial sequence of firstN natural numbers. You can rearrange this sequence in many ways. Therewill beN! different arrangements. You have to calculate t
2014-06-24 17:04:36 1060
原创 poj1284 Primitive Roots 原根个数
DescriptionWe say that integer x, 0 i mod p) | 1 <= i <= p-1 } is equal to { 1, ..., p-1 }. For example, the consecutive powers of 3 modulo 7 are 3, 2, 6, 4, 5, 1, and thus 3 is a primitive root m
2014-06-22 22:32:42 741
原创 uva1436 - Counting heaps 统计树的个数
We are given a rooted tree of n vertices. The vertices are to be labeled with numbers1, 2,..., n so that each label is unique and the heap condition holds, i.e. the label of any vertex is less than
2014-06-22 16:50:38 585
原创 uva11529 - Strange Tax Calculation 凹四边形个数
The people living in large citieshave to pay more tax than people living in rural areas. That is because incities people have many facilities, which rural people don’t have. Also peoplein large and fa
2014-06-20 22:02:37 544
原创 uva1393 - Highways
Hackerland is a happy democratic country with m×n cities, arranged in a rectangularm by n grid and connected bym roads in the east-west direction and n roads in the north-south direction. By pub
2014-06-20 17:03:24 499
原创 uva10312 - Expression Bracketing 括号划分
Problem AExpression BracketingInput: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MB Inthis problem you will have to find in how many waysn letters can be
2014-06-19 17:18:54 679
原创 uva11645 - Bits 统计 巧妙的大数
Problem JBits Input: Standard InputOutput: StandardOutput A bit is a binary digit,taking a logical value of either "1" or "0" (also referredto as "true" or "false" respectively). And every
2014-06-18 21:11:26 567
原创 uva1350 - Pinary 第N个满足条件的二进制数
``Pinary" number is a positive number using only two digits ``0" and ``1" with usual rule that it must not begin with a 0, and the additional rule that two successive digits must not be both ``1". Thi
2014-06-18 19:05:40 586
原创 uva10883 - Supermean 杨辉三角
Do you know how to compute the mean (or average) of n numbers?Well, that's not good enough for me. I want the supermean! "What's asupermean," you ask? I'll tell you. List then given numbers innon-
2014-06-17 17:16:11 490
表情多v0.2
2015-06-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人