Input our current position and a destination, an online map canrecommend several paths. Now your job is to recommend two paths toyour user: one is the shortest, and the other is the fastest. It isguaranteed that a path exists for any request. Input Specification: Each input file contains one test...
Given a tree, you are supposed to tell if it is a complete binarytree. Input Specification: Each input file contains one test case. For each case, the first linegives a positive integer N (<=20) which is the total number of nodesin the tree -- and hence the nodes are numbered from 0 to N-1. Th...
The basic task is simple: given N real numbers, you are supposed tocalculate their average. But what makes it complicated is that some ofthe input numbers might not be legal. A "legal" input is a real numberin [-1000, 1000] and is accurate up to no more than 2 decimal places.When you calculate th...
安装所需的命令 go get -u -v github.com/nsf/gocode go get -u -v github.com/rogpeppe/godef go get -u -vgolang.org/x/tools/cmd/guru go get -u -vgolang.org/x/tools/cmd/gorename go get -u -vgolang.org/x/tools/cmd/goimports