Day01: Add input data and resolve

This commit is contained in:
2018-12-03 14:02:41 +01:00
parent ceb8132728
commit a56f250b82
3 changed files with 1041 additions and 6 deletions

View File

@@ -47,5 +47,10 @@
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="inputs\Day01.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@@ -1,15 +1,20 @@
using System; using System;
using System.Collections.Generic; using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AdventOfCode2018 namespace AdventOfCode2018
{ {
class Program internal class Program
{ {
static void Main(string[] args) private static void Main(string[] args)
{ {
// Resolve Day01 input data
Day01 day01 = new Day01();
string[] lines = File.ReadAllLines("inputs/Day01.txt");
string result = day01.ResolveDay01(lines);
Console.WriteLine("Day01 Result: {0}", result);
Console.Read();
} }
} }
} }

File diff suppressed because it is too large Load Diff