The first ACM University Student Program Design Competition (original title) Review 4.18

Source: Internet
Author: User

Phone number topic Link: http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=2151&cid=1172 Test instructions is very simple: give the n line phone numbers, Look for a string is another string of prefixes, some words output no, of course, two is the same no: no prefix 0, directly with the two-dimensional array, cycle on the line, with strcmp comparison equal. does not time out. Hello world!title Link: http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=2158&cid=1172Sample input
31 22 32 30
Sample output
Case 1:2 3-1-1-1-1
Test instructions: Give n number of pairs, to 0<R,C≤300 and all the input number pairs to compare, if there are more than this two, the output is all large number pairs, there is no output-1, if the two number pairs are large number of multiple, the line is the smallest priority, the row has more than one, the column is the least priority. The puzzle: At that time did not think of the use of the same pair,stl or unskilled, with the array storage pairs, if the comparison is OK. ShoppingTopic Links:http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=2154&cid=1172 Sample Input
424 13 89 3767 30 41 14 39 420
Sample output
15270
Test instructions: A person to go shopping malls, parked in the smallest store location, stroll through all shopping malls, in return to the car to seek the length of the route. Solving: order, maximum minus 2. Balloons Topic Link: http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=2152&cid=1172 Sample input
511001001001111111010100100
Sample output
Case 1:3 2
Test instructions: The number of four connected blocks and eight blocks of 1. Puzzle: Full DFS template, four-connected block can be added if cut off 4 directions.

The first ACM University Student Program Design Competition (original title) Review 4.18

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.