Day01: Add input data and resolve
This commit is contained in:
@@ -47,5 +47,10 @@
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="inputs\Day01.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -1,15 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1025
AdventOfCode2018/inputs/Day01.txt
Normal file
1025
AdventOfCode2018/inputs/Day01.txt
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user