摘要:
Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gainin 阅读全文
posted @ 2018-06-13 23:07
赖兴宇
阅读(205)
评论(0)
推荐(0)
摘要:
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra 阅读全文
posted @ 2018-06-13 21:17
赖兴宇
阅读(627)
评论(0)
推荐(0)
摘要:
Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all 阅读全文
posted @ 2018-06-13 19:22
赖兴宇
阅读(233)
评论(0)
推荐(0)
摘要:
Given two strings S~1~ and S~2~, S = S~1~ - S~2~ is defined to be the remaining string after taking all the characters in S~2~ from S~1~. Your task is 阅读全文
posted @ 2018-06-13 17:09
赖兴宇
阅读(102)
评论(0)
推荐(0)
摘要:
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "ins 阅读全文
posted @ 2018-06-13 16:59
赖兴宇
阅读(169)
评论(0)
推荐(0)
摘要:
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords 阅读全文
posted @ 2018-06-13 16:53
赖兴宇
阅读(122)
评论(0)
推荐(0)
摘要:
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135 阅读全文
posted @ 2018-06-13 16:25
赖兴宇
阅读(170)
评论(0)
推荐(0)
摘要:
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2018-06-13 16:05
赖兴宇
阅读(130)
评论(0)
推荐(0)
摘要:
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b 阅读全文
posted @ 2018-06-13 15:52
赖兴宇
阅读(169)
评论(0)
推荐(0)
摘要:
Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are 阅读全文
posted @ 2018-06-13 15:41
赖兴宇
阅读(191)
评论(0)
推荐(0)
摘要:
Given a syntax tree (binary), you are supposed to output the corresponding infix expression, with parentheses reflecting the precedences of the operat 阅读全文
posted @ 2018-06-13 14:23
赖兴宇
阅读(151)
评论(0)
推荐(0)