• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Finds networks of resistors to approximate resistances.


Commit MetaInfo

Revisiondcac3c08c0529570331212733fb42ecd6168b095 (tree)
Zeit2020-03-11 15:46:59
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Print total resistance of each network when reporting results

Ändern Zusammenfassung

Diff

--- a/resistors.m
+++ b/resistors.m
@@ -34,7 +34,9 @@
3434 %-----------------------------------------------------------------------------%
3535
3636 :- pred print(network::in, io.io::di, io.io::uo) is det.
37-print(Network) --> print(0, Network), io.nl, io.nl.
37+print(Network) -->
38+ io.write_int(value(Network)), io.nl,
39+ print(0, Network), io.nl, io.nl.
3840
3941 %-----------------------------------------------------------------------------%
4042