From ff1db0a8abaf22d3ef3db8721a472379a9ec8b35 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 19 Sep 2019 09:17:15 -0500 Subject: [PATCH] problem 3 work --- uil/october-2013/12/bin/CheckerBoard.class | Bin 1335 -> 1131 bytes uil/october-2013/12/bin/Point.class | Bin 342 -> 577 bytes uil/october-2013/12/bin/problem12.class | Bin 550 -> 550 bytes uil/october-2013/12/src/problem12.java | 21 ++- uil/october-2013/3/java/.idea/vcs.xml | 6 + uil/october-2013/3/java/.idea/workspace.xml | 155 +++++++++++++++--- uil/october-2013/3/java/input.dat | 4 +- .../3/java/out/production/3/Maze.class | Bin 0 -> 3491 bytes .../3/java/out/production/3/Point.class | Bin 0 -> 779 bytes .../3/java/out/production/3/problem3.class | Bin 0 -> 1617 bytes uil/october-2013/3/java/src/problem3.java | 91 +++++++--- uil/october-2013/9/.idea/workspace.xml | 68 ++++---- 12 files changed, 248 insertions(+), 97 deletions(-) create mode 100644 uil/october-2013/3/java/.idea/vcs.xml create mode 100644 uil/october-2013/3/java/out/production/3/Maze.class create mode 100644 uil/october-2013/3/java/out/production/3/Point.class create mode 100644 uil/october-2013/3/java/out/production/3/problem3.class diff --git a/uil/october-2013/12/bin/CheckerBoard.class b/uil/october-2013/12/bin/CheckerBoard.class index e0336f37f8e53a166ff3418f614666e32069d5c3..e3874c7511c0da4aaed3eaeaa1e03c6948df937a 100644 GIT binary patch literal 1131 zcmds0(P|Sx6g`v1ZnBL@8(VAD=!il$AO=NzFr^O`g~FnR)I#agWOtICy4eY{vjx9Q zP|$ZjO1!%%Nr`Lm*@vB-x%b?2ma}Jm{`&eIz)Nrk6^6z^B!f@VywSph4yp|6=i);2 zVv&q{ABN{LundkKjZ$e-YWhVtvnuZSDz$xv`aq2nVKXBcc9zI7Z;jEWh8APd$Hd4~#}_i>fu2lNEUeNA zpBg=kyvm}%wmC*c18*T|}KTjpU>cRg>kp?31 z{@DT-4Qw<}N1I{GEB{w5pL~3uO@`7O3$mY~?dw3qC&H-wd|9m8NKtN@{#B1D4Qpd* zk93-dJGl6`k zau=GHX?*_TS)O5VFs#spWAxm>D!m=rRZuIcb+}YnD=y>;RRQ-K8mH~%7p(s%aJOj9 zr+^MNX>AmH7hAYZCtw?QXl};2GiS;bXH0iXm>&Oy>HeIlGiRz^%d}g<#PEP-DtP!C DFZU;q literal 1335 zcmds1O>fgc5Pcg$oVaPy2KqtyTHumM6&0u_66HVvDUyLo36+pfjc2J zb-H|?lW1_6@TnSzNGkG=wBeR)?c0gq%Q^j@5JO>)b&^QpX~D=o_he#Q8BOg5kBp92 zQ^Jjigh{y7*?BApNDXJyr4Vi@l{^fT(w6rH+0Uy)9zkaJ6RQbX*8jR5E?iX0aInF! zRbSmWRga4LVjA~_=>?P{L(S7+Fg^*4O!fI@-i{Nof^t``^Q;pK635MsEC^kPcF{l;u12r zT|G6ScqUVZEAz2?@bG>*tPbwb0H-MQNIajlNRNgq0SCh+dO{d|mr)>@Y7UCDQ=-)& z={fqlAK|{PmEWWCnY0`>Nft7%P1I;z&ekrj;3{dr7PglVQp_2`&I*Lx-ymG0d-ljP dhwF=2@(ZLJE0Fe9Amwl?!?=yR^v_dN{5vKDa0mbZ diff --git a/uil/october-2013/12/bin/Point.class b/uil/october-2013/12/bin/Point.class index 1ffdf68decc2a480894e8b2d5811cfcf0569da7c..cb97d49ea33ce3230e2bcd87186073b087d0dfdc 100644 GIT binary patch delta 289 zcmcb{bdZJX)W2Q(7#J8#7^Ek1EtY1@O)W}KWn|#e@CnGz%qy|h3}a+q%`eGFEtbnSlvNOKU}LVc^pS;)JaX zd?1bhkRt%(2y6sOGcgDONj{)r1|W-4wP85kItfS8d%3e1uQ0ERvVGXMYp delta 33 kcmZ3+vW#WJaYjbj$tM`Sh4mS@85kItfS8d%3e1uQ0E7Ys82|tP diff --git a/uil/october-2013/12/src/problem12.java b/uil/october-2013/12/src/problem12.java index f98ece6..3954ba5 100644 --- a/uil/october-2013/12/src/problem12.java +++ b/uil/october-2013/12/src/problem12.java @@ -2,6 +2,8 @@ import static java.lang.System.*; import java.io.File; import java.io.FileNotFoundException; import java.util.Arrays; +import java.util.List; +import java.util.ArrayList; import java.util.Scanner; class Point { @@ -11,19 +13,30 @@ class Point { this.x = x; this.y = y; } + + void merge(Point other) { + this.x += other.x; + this.y += other.y; + } + + void merge(int x, int y) { + this.x += x; + this.y += y; + } } class CheckerBoard { - Point[] offsets = {Point(1, 1), Point(-1, -1), Point(-1, 1), Point(1, -1)}; + List offsets = Arrays.asList(new Point[]{Point(1, 1), Point(-1, -1), Point(-1, 1), Point(1, -1)}); CheckerBoard(String[][] matrix) { } - int[][] getPossible(int x, int y) { - return getPossible(x, y, new int[0][0]); + List getPossible(int x, int y) { + return getPossible(x, y, new ArrayList()); } - int[][] getPossible(int x, int y, List blacklist) {} + + List getPossible(int x, int y, List blacklist) {} } class problem12 { diff --git a/uil/october-2013/3/java/.idea/vcs.xml b/uil/october-2013/3/java/.idea/vcs.xml new file mode 100644 index 0000000..4fce1d8 --- /dev/null +++ b/uil/october-2013/3/java/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/uil/october-2013/3/java/.idea/workspace.xml b/uil/october-2013/3/java/.idea/workspace.xml index 7318077..fdfc5a1 100644 --- a/uil/october-2013/3/java/.idea/workspace.xml +++ b/uil/october-2013/3/java/.idea/workspace.xml @@ -1,7 +1,17 @@ - + + + + + + + + + + + - + - - + + + + + + @@ -62,6 +108,14 @@ + + + out.println + + + +