Thursday, January 23, 2014
CSDN universities Club Challenge online programming, lots of prizes ~
You're Coding of people? C, C + +, Java, Csharp, which language is your good? Universities club launched online programming challenge, won the honor for yourself and your school! The following topics are not what you would do? Come and win prizes it ~
Topic: Everyone code, integer negated (5 points) has 339 people involved in the challenge, 167 challenged successfully start now answer >>
The questions were very simple, complete the function reverse, required to achieve the given number is an integer whichever is the opposite function, to cite two examples are as follows: x = 123, return 321 x = -123, return -321
Topic: polygon diagonal questions (20 points) has 137 people involved in the challenge, 5 challenged successfully start now answer >>
Given a regular n-sided polygon vertices are numbered 1-n, k diagonal asked to draw, in which k diagonal line inside the polygon is no intersection (may intersect only at the apex), and asked how many ways. Enter the number of sides of the polygon to draw diagonal n and the number of k. 4 <= n <= 1000000000 1 <= k <= n outputs, the number of methods, as a result of larger 1000003 only take the remainder of the output results. Example: For example, enter 41 input 52 output Output 2 5 Analysis: Example (1) are quadrilateral, that square. Draw a diagonal line, you can draw (1,3) can also be painted (2,4) Example (2) regular pentagon, draw two diagonal lines do not intersect, you can draw (1,3) and (1,4) (2,4) and (2,5) (3,1) and (3,5) (4,1) and (4,2) (5,2) and (5,3) < br />
problem in question here >>
more exciting content, please click >>
2013 年 12 月 11 日, CSDN Club 2013 Fall universities in Beijing The first stop speaking tour "programming language application and development" held at Beijing Union University, Liang Ying CSDN college club operations director, operations manager Tong Hui CSDN CODE, Baidu mobile cloud business unit brings a wonderful architect Cao Wenbin Share >> ;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment