Skip to content

Instantly share code, notes, and snippets.

View MarmaladeKnight's full-sized avatar

MarmaladeKnight

View GitHub Profile
Option Explicit On
Option Strict On
Imports System.Math
Public Class Form1
Function vvod(ByVal Input As TextBox) As Double
Return CDbl(Input.Text)
End Function
'Function countValue(ByVal a As Double, ByVal b As Double, ByVal c As Double, ByVal x As Double) As Double
n = int(input())
m = int(input())
wires = []
for i in range(m):
wire = list(map(int, input().split()))
wires.append(wire)
broken_count = int(input())
broken_wires = list(map(int, input().split(' ')))