Logo
(追記) (追記ここまで)

14060번 - Paths in Multigraph 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB67504078.431%

문제

Given is an undirected multigraph G without loops.

Write a program disconnect, which determines the minimum number of edges that must be removed from G, so that the resulting multigraph to be disconnected.

입력

The first line of the standard input contains an integer n – the number of vertices in G. The vertices of the multigraph G are numbered from 1 to n. The second line of the standard input contains an integer m – the number of edges in G. The next m lines of the standard input contain the endpoints u and v of the consecutive edge in multigraph G.

출력

The only line of the standard output has to contain one integer – the minimum number of edges that must be removed from G, so that the resulting multigraph to be disconnected.

제한

  • 2 ≤ n ≤ 100
  • 0 ≤ m ≤ 3000

예제 입력 1

2
3
1 2
1 2
1 2

예제 출력 1

3

예제 입력 2

3
2
1 2
2 3

예제 출력 2

1

예제 입력 3

3
1
1 2

예제 출력 3

0

힌트

출처

Olympiad > International Autumn Tournament in Informatics > 2016 > Group B (Juniors) 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /