中南林业科技大学第十一届程序设计大赛 F题:得分 链接:https://ac.nowcoder.com/acm/contest/910/F来源:...
题目背景 A地区在地震过后,连接所有村庄的公路都造成了损坏而无法通车。政府派人修复这些公路。 题目描述 给出A地区的村庄数,公路是双向的。并告诉...
N个点M条边的无向连通图,每条边有一个权值,求该图的最小生成树。 输入 第1行:2个数N,M中间用空格分隔,N为点的数量,M为边的数量。(2 <...
Given a 2D array A, each cell is 0 (representing sea) or 1 (representing...
There are N students in a class. Some of them are friends, while some ar...
Let's play the minesweeper game (Wikipedia, online game)!You are given a...
An image is represented by a 2-D array of integers, each integer represe...
International Morse Code defines a standard encoding where each letter i...
Given a 2d grid map of '1's (land) and '0's (water), count the number of...