From 93f2aa7a12357c818d393a4e311738e6196aa973 Mon Sep 17 00:00:00 2001 From: gnomerd Date: Mon, 9 Dec 2019 13:22:26 +0100 Subject: [PATCH] Final commit (hopefully) --- 2019/1/Program.cs | 13 +++++++++++-- 2019/1/bin/Debug/netcoreapp2.2/1.dll | Bin 4608 -> 5120 bytes 2019/1/bin/Debug/netcoreapp2.2/1.pdb | Bin 504 -> 636 bytes 2019/1/obj/Debug/netcoreapp2.2/1.assets.cache | Bin 20701 -> 20701 bytes 2019/1/obj/Debug/netcoreapp2.2/1.dll | Bin 4608 -> 5120 bytes 2019/1/obj/Debug/netcoreapp2.2/1.pdb | Bin 504 -> 636 bytes 6 files changed, 11 insertions(+), 2 deletions(-) diff --git a/2019/1/Program.cs b/2019/1/Program.cs index 074ff45..745b070 100644 --- a/2019/1/Program.cs +++ b/2019/1/Program.cs @@ -5,8 +5,17 @@ namespace _1 { class Program { static void Main(string[] args) { - string input = System.IO.File.ReadAllText(@"./input.txt"); - Console.Write(input); + string input = File.ReadAllText(@"./input.txt"); + + string[] inputs = input.Split( Environment.NewLine, StringSplitOptions.None ); + int[] output = new int[100]; + double input_; + for ( int i = 0; i < inputs.Length; i++ ) { + Console.WriteLine( inputs[i] ); + input_ = Convert.ToDouble(inputs[i]); + output[i] = (int)Math.Floor( input_/3 ) - 2; + Console.WriteLine(output[i]); + } } } } diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.dll b/2019/1/bin/Debug/netcoreapp2.2/1.dll index 56dd0249dc450b83847e98461bcd1347770b1c9a..b6b4282ebe9db0751c455163896b7cbc10a6d907 100644 GIT binary patch delta 1266 zcmZ9MUuYav6vn?hot>SX%}#bQHI22QlU_x_!xgP}Lw|?#s^UEACCWJwh_SzzhDRl*@e^x>ID>{0SRj2T`<(bI1V5DgRI*#@Rq0PE7np$_*f23u zqd>#!Oz;8etGK}0&_^^8kYeI(S{0j%V~K-_AdS;>r0p^qcZ6QY3LB;PvW#BtxJDI4 zV+>g(fot@%MbvOB(ZCjBn(}L6x>p9fB#V*{Nlr=nSX3N(<7IT?FdkR7&{joCeFvSm z8>exV4M=4W2k3bXc_cAGwDAP-HXJ2p@e;8Y7m5A&j5vVH#32(u(6m=BlyQ-l)b82{ z?h_5s)i-(-{s_*>J5Z^o#;XvTD;oUYbG<@pjOpzt22p<>?k|N07iPVkC?Bpy-dw&o zhKX=ET$q{lu-hjz^`S7RhWs0KL+d_2@NmeBrboT!$zT3i?PJNtj|-&((KFoE24cHs z!?40j+UUM!{=*AF3xON~dXByGURrAtjL#q0ax&&fE!9_0?lwrEzh2`^kpsUq75^-Wg5eer+=GF*r#$ znc&~WGiiSH%F0{T&7oucN6SYp9be_TKHAq5`K6{PYL9<#=BqXJqwA}8?OFM~`9+~p k&|QL4?`l`pa?7Xmfbkpp$IGU%7E?CevuvgRVD&=$Ur!|MSO5S3 delta 891 zcmX|g2 zkoim5;Eqq*%y>|{nuOKa=l@i2Gv*XRt#L?fVpW(pDimArSnR|nE}6K5J}L*qJh=wN z8=ChuO|AFn__vr97E0O4Msympx-#dX3H>nwm}I+Zopm}&&q9hM^D&*>+>>K@HMGDF z;YW_UgQSTv(!xP9!1Ia?n#VNTG`lqWHAm3?SCruj8nGWkluR5#5o*W~n#jF4Lq;)7 zR$+mx#Uj~+hvW&YknLLU#)ACfsW=?vK4l&~z7BbQs_>HAFR0Y0{x^F4Y_%LRO5~K0 z$S)h!LjE)xWvw@DWX@eYKP)%A$=dm6M?Md>Tdn!babLVV^$i|J2%p=5Fc<`bDz)8S zVY92PAZ(fTE!8|t-&%r5cdBnSK;PnB-SX#NA7y#D~F>XIh_ diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.pdb b/2019/1/bin/Debug/netcoreapp2.2/1.pdb index 5c33eddc7fe57cc189d93d7bf00f083f98c0d9f6..ef9a374b136583adcdd007c80d7a8895f1c79f7d 100644 GIT binary patch delta 423 zcmeyt{D)*z&fR<832Q37fkp69Xqu9>``80b(X7 z2JwX$82A{tfD8}^gjpsYRAvRKV4e6-{lK*HY2+- zBZC2xGdF`D3j;5M3=_~LoGd)dAkQ)~crY@^GwE|Ns4@YatOIhfEQrO(RL{u3T<*aJ i^iDJ|fLIt9d13_^`54_98)h&z>|$)Vz|?SzkpTcu%TPxE delta 265 zcmeyv@`HJTNqr6j1A}rM1A_r00|N($9b8hBnU`J+WHML)#aKXMp}`C`K(+yh?H=ms z0;F?*{2mbBDJMS(NLL-u{wR3ryzly1frpoE^7Gv4+rAX2gw0))iGdR+4`eg&0WlL4 zgZR84Aub>T!~tREi3gQg!JLUN)zw6RA|L<~0Fgpq%?b?63~gW$hRnQz(vrz#jBPfL zuIxI$QS;T4i@_~^0Rc>h7uZHWTbz2OX|Da>^yi@s(?x-1FtRH%GFUM=b29*)#LmFT KRL{f+auEQLmoz~D diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.assets.cache b/2019/1/obj/Debug/netcoreapp2.2/1.assets.cache index 058720c327c55be860c92bc048175f92b0a23e72..aea48af6b2dd463f03fca89d6c4ea0a24f1598da 100644 GIT binary patch delta 51 zcmV-30L=g0p#j~Y0Vq&QM?nGr001xf`ibLHSitVcNCQm!9|h~uDv%keCJ%aPIhV|+ J4b8DAwNNK175)GK delta 51 zcmV-30L=g0p#j~Y0Vq&QM?nGr0055~jr$EgCG(!Cb70)`GW@g)QfHmB0(@0H=B^U2 Jz+SX%}#bQHI22QlU_x_!xgP}Lw|?#s^UEACCWJwh_SzzhDRl*@e^x>ID>{0SRj2T`<(bI1V5DgRI*#@Rq0PE7np$_*f23u zqd>#!Oz;8etGK}0&_^^8kYeI(S{0j%V~K-_AdS;>r0p^qcZ6QY3LB;PvW#BtxJDI4 zV+>g(fot@%MbvOB(ZCjBn(}L6x>p9fB#V*{Nlr=nSX3N(<7IT?FdkR7&{joCeFvSm z8>exV4M=4W2k3bXc_cAGwDAP-HXJ2p@e;8Y7m5A&j5vVH#32(u(6m=BlyQ-l)b82{ z?h_5s)i-(-{s_*>J5Z^o#;XvTD;oUYbG<@pjOpzt22p<>?k|N07iPVkC?Bpy-dw&o zhKX=ET$q{lu-hjz^`S7RhWs0KL+d_2@NmeBrboT!$zT3i?PJNtj|-&((KFoE24cHs z!?40j+UUM!{=*AF3xON~dXByGURrAtjL#q0ax&&fE!9_0?lwrEzh2`^kpsUq75^-Wg5eer+=GF*r#$ znc&~WGiiSH%F0{T&7oucN6SYp9be_TKHAq5`K6{PYL9<#=BqXJqwA}8?OFM~`9+~p k&|QL4?`l`pa?7Xmfbkpp$IGU%7E?CevuvgRVD&=$Ur!|MSO5S3 delta 891 zcmX|g2 zkoim5;Eqq*%y>|{nuOKa=l@i2Gv*XRt#L?fVpW(pDimArSnR|nE}6K5J}L*qJh=wN z8=ChuO|AFn__vr97E0O4Msympx-#dX3H>nwm}I+Zopm}&&q9hM^D&*>+>>K@HMGDF z;YW_UgQSTv(!xP9!1Ia?n#VNTG`lqWHAm3?SCruj8nGWkluR5#5o*W~n#jF4Lq;)7 zR$+mx#Uj~+hvW&YknLLU#)ACfsW=?vK4l&~z7BbQs_>HAFR0Y0{x^F4Y_%LRO5~K0 z$S)h!LjE)xWvw@DWX@eYKP)%A$=dm6M?Md>Tdn!babLVV^$i|J2%p=5Fc<`bDz)8S zVY92PAZ(fTE!8|t-&%r5cdBnSK;PnB-SX#NA7y#D~F>XIh_ diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.pdb b/2019/1/obj/Debug/netcoreapp2.2/1.pdb index 5c33eddc7fe57cc189d93d7bf00f083f98c0d9f6..ef9a374b136583adcdd007c80d7a8895f1c79f7d 100644 GIT binary patch delta 423 zcmeyt{D)*z&fR<832Q37fkp69Xqu9>``80b(X7 z2JwX$82A{tfD8}^gjpsYRAvRKV4e6-{lK*HY2+- zBZC2xGdF`D3j;5M3=_~LoGd)dAkQ)~crY@^GwE|Ns4@YatOIhfEQrO(RL{u3T<*aJ i^iDJ|fLIt9d13_^`54_98)h&z>|$)Vz|?SzkpTcu%TPxE delta 265 zcmeyv@`HJTNqr6j1A}rM1A_r00|N($9b8hBnU`J+WHML)#aKXMp}`C`K(+yh?H=ms z0;F?*{2mbBDJMS(NLL-u{wR3ryzly1frpoE^7Gv4+rAX2gw0))iGdR+4`eg&0WlL4 zgZR84Aub>T!~tREi3gQg!JLUN)zw6RA|L<~0Fgpq%?b?63~gW$hRnQz(vrz#jBPfL zuIxI$QS;T4i@_~^0Rc>h7uZHWTbz2OX|Da>^yi@s(?x-1FtRH%GFUM=b29*)#LmFT KRL{f+auEQLmoz~D