原创 UVA 12378 Ball Blasting Game

Ball Blasting Game Morteza is playing a ball blasting game. In this game there is a chain of different colored balls. H

原创 UVA 11770 Lighting Away

RunID User Problem Result Memory Time Language Length Submit Time 2482977 zhyfzy J Accepted

原创 LA 6450 Social Advertising

【題目】 給一個無向圖,每當對某個點操作,該點以及與該點相連的點都獲得標記,問標記所有點至少需要操作多少次 輸入 第一行爲T,表示測試數據組數 每組測試數據第一行爲n(1<=n<=20)表示有n個點,接下來n行,第i行描述與結點i所連的點