Skip to main content
Učilnica FRI 23/24
  • Home
  • More
Close
Toggle search input
English ‎(en)‎
English ‎(en)‎ Slovenščina ‎(sl)‎ Македонски ‎(mk)‎ Русский ‎(ru)‎ 한국어 ‎(ko)‎
You are currently using guest access
Log in
Home
Course Activities
Assignments Forums Quizzes Resources
Recent Courses
You are not enrolled in any courses
  1. aps2uni
  2. Izziv 12

Izziv 12

Completion requirements
Due: Sunday, 2 June 2024, 11:59 PM

Napišite program, ki izpiše ceno najcenejšega Hamiltonovega cikla v podanem uteženem polnem grafu na $n$ vozliščih ($n \in [1, 20]$). V prvi vrstici standardnega vhoda je zapisano število $n$, nato pa sledi $n-1$ vrstic, ki tvorijo zgornji trikotnik matrike cen. Prva vrstica tako podaja cene $c(0, 1)$, $c(0, 2)$, $\ldots$, $c(0, n-1)$, druga vrstica podaja cene $c(1, 2)$, $c(1, 3)$, $\ldots$, $c(1, n-1)$ itd. Na standardni izhod izpišite samo iskani rezultat.

Primer vhoda:

5
4 9 1 7
8 2 3
6 5
10

Primer izhoda:

19
◄ Kviz 12
Primer praktičnega dela izpita z rešitvami ►
You are currently using guest access (Log in)
Get the mobile app Obvestilo o avtorskih pravicah
Powered by Moodle