• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Finds networks of resistors to approximate resistances.


Commit MetaInfo

Revisióndcac3c08c0529570331212733fb42ecd6168b095 (tree)
Tiempo2020-03-11 15:46:59
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Print total resistance of each network when reporting results

Cambiar Resumen

Diferencia incremental

--- 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