你的任務(wù)很簡(jiǎn)單.我會(huì)給你一個(gè)無(wú)向圖,你需要告訴我這個(gè)圖標(biāo)是否僅僅是個(gè)圓圈.一個(gè)圓圈有3個(gè)或3個(gè)以上的節(jié)點(diǎn)V1,V2,V3……Vk等等,這樣一來(lái),V1與V2,V2與V3,……Vk與V1間就會(huì)有很多條棱,并且不會(huì)有多余的棱.這個(gè)圖標(biāo)不會(huì)有自循環(huán),兩個(gè)節(jié)點(diǎn)間最多有一條棱.
輸入
有很多種情況(不超過(guò)10)
第一條線包含兩個(gè)整數(shù)n和m,表明節(jié)點(diǎn)的數(shù)量和節(jié)點(diǎn)之間棱的數(shù)量(1 < n < 10,1
英語(yǔ)翻譯
英語(yǔ)翻譯
Your task is so easy.I will give you an undirected graph,and you just need to tell me whether the graph is just a circle.A cycle is three or more nodes V1,V2,V3,...Vk,such that there are edges between V1 and V2,V2 and V3,...Vk and V1,with no other extra edges.The graph will not contain self-loop.Furthermore,there is at most one edge between two nodes.
Input
There are multiple cases (no more than 10).
The first line contains two integers n and m,which indicate the number of nodes and the number of edges (1 < n < 10,1
Your task is so easy.I will give you an undirected graph,and you just need to tell me whether the graph is just a circle.A cycle is three or more nodes V1,V2,V3,...Vk,such that there are edges between V1 and V2,V2 and V3,...Vk and V1,with no other extra edges.The graph will not contain self-loop.Furthermore,there is at most one edge between two nodes.
Input
There are multiple cases (no more than 10).
The first line contains two integers n and m,which indicate the number of nodes and the number of edges (1 < n < 10,1
英語(yǔ)人氣:919 ℃時(shí)間:2019-10-19 16:15:07
優(yōu)質(zhì)解答
我來(lái)回答
類似推薦
- 英語(yǔ)翻譯
- 英語(yǔ)翻譯
- 英語(yǔ)翻譯
- 英語(yǔ)翻譯
- 英語(yǔ)翻譯
- 電場(chǎng)力是怎么產(chǎn)生的
- ( )are going to have a picnic?This afternoon after school.
- 什么是二次函數(shù)、一元二次方程和一元二次不等式的聯(lián)系和區(qū)別?
- CaCl2怎么不與ZnCO3反應(yīng)生成ZnCl2
- 有一個(gè)運(yùn)算程序,可以使a⊕b=n(n為常數(shù))時(shí),得(a+1)⊕b=n+1,a⊕(b+1)=n-2.現(xiàn)在已知1⊕1=2,那么2008⊕2008=_.
- 求一幅紅外線接收電路圖及紅外線發(fā)射電路圖.(越多越好)謝謝
- 等差數(shù)列的前四項(xiàng)之和是124,最后四項(xiàng)之和是156,且各項(xiàng)和是210,求項(xiàng)數(shù).
猜你喜歡
- 1數(shù)字2 3 5 6 7 8 9組成三位數(shù)有哪些
- 2黃金比例 是多少比多少?
- 3my watch is 5 minutes fast.這里的五分鐘難道做單數(shù)理解么?為什么用IS 不用are 呢
- 4陽(yáng)光路上作文600字原創(chuàng)幫我個(gè)忙吧
- 510個(gè)英語(yǔ)不規(guī)則動(dòng)詞
- 6“豫”在文言文中的意思
- 71米長(zhǎng)的繩子的5分之2和5分之2米 哪個(gè)長(zhǎng)
- 8小明放學(xué)回家需要走10分鐘,小剛放學(xué)回家需要走14分鐘.已知小剛回家的路程比小明回家的路程多6分之1,
- 9降臨的降是什么意思
- 10(-0.2)的2002次冪×5的2002次冪+(—1)的2002次冪+(—1)的2001次冪的值是?
- 11can you show me your picture?
- 12根下(a-b)平方 就等于絕對(duì)值a-b么