mirror of
https://github.com/ckaczor/Advent2019.git
synced 2026-01-13 17:22:15 -05:00
Some reorg so I can have the original inputs
This commit is contained in:
@@ -5,4 +5,17 @@
|
||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Advent.csproj.DotSettings" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Day1\input.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Day2\input.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
3
Advent.csproj.DotSettings
Normal file
3
Advent.csproj.DotSettings
Normal file
@@ -0,0 +1,3 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=day1/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=day2/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||
@@ -7,7 +7,7 @@ namespace Advent
|
||||
{
|
||||
public static void Execute()
|
||||
{
|
||||
var lines = File.ReadAllLines(@"C:\Users\chris\OneDrive\Desktop\input.txt");
|
||||
var lines = File.ReadAllLines(@".\Day1\input.txt");
|
||||
|
||||
var total = 0.0;
|
||||
|
||||
100
Day1/input.txt
Normal file
100
Day1/input.txt
Normal file
@@ -0,0 +1,100 @@
|
||||
120588
|
||||
137636
|
||||
114877
|
||||
118328
|
||||
97394
|
||||
58497
|
||||
139343
|
||||
80307
|
||||
125063
|
||||
70956
|
||||
119676
|
||||
76115
|
||||
91916
|
||||
64618
|
||||
82881
|
||||
57000
|
||||
141785
|
||||
73460
|
||||
68992
|
||||
125701
|
||||
97839
|
||||
137800
|
||||
111051
|
||||
104591
|
||||
114396
|
||||
60210
|
||||
80238
|
||||
112009
|
||||
70265
|
||||
140582
|
||||
58765
|
||||
96848
|
||||
130438
|
||||
55615
|
||||
53903
|
||||
109361
|
||||
129512
|
||||
75888
|
||||
93231
|
||||
54697
|
||||
125320
|
||||
53614
|
||||
87173
|
||||
71762
|
||||
147739
|
||||
131840
|
||||
123979
|
||||
54434
|
||||
121517
|
||||
113518
|
||||
83544
|
||||
124924
|
||||
76608
|
||||
130483
|
||||
149285
|
||||
134147
|
||||
111589
|
||||
88174
|
||||
136392
|
||||
94448
|
||||
139244
|
||||
54064
|
||||
85110
|
||||
102985
|
||||
95646
|
||||
54649
|
||||
129755
|
||||
135795
|
||||
119653
|
||||
147633
|
||||
108386
|
||||
143180
|
||||
126587
|
||||
119273
|
||||
130579
|
||||
56006
|
||||
83232
|
||||
99948
|
||||
147711
|
||||
83092
|
||||
99706
|
||||
98697
|
||||
143231
|
||||
94526
|
||||
53102
|
||||
86002
|
||||
71413
|
||||
111054
|
||||
147220
|
||||
136504
|
||||
59308
|
||||
61123
|
||||
148771
|
||||
113986
|
||||
55483
|
||||
94426
|
||||
62791
|
||||
100959
|
||||
63604
|
||||
112511
|
||||
@@ -20,7 +20,7 @@ namespace Advent
|
||||
|
||||
private static int Calculate(int noun, int verb)
|
||||
{
|
||||
var lines = File.ReadAllLines(@"C:\Users\chris\OneDrive\Desktop\input.txt");
|
||||
var lines = File.ReadAllLines(@".\Day2\input.txt");
|
||||
|
||||
var codes = lines[0].Split(',').Select(int.Parse).ToArray();
|
||||
|
||||
1
Day2/input.txt
Normal file
1
Day2/input.txt
Normal file
@@ -0,0 +1 @@
|
||||
1,0,0,3,1,1,2,3,1,3,4,3,1,5,0,3,2,1,9,19,1,5,19,23,1,6,23,27,1,27,10,31,1,31,5,35,2,10,35,39,1,9,39,43,1,43,5,47,1,47,6,51,2,51,6,55,1,13,55,59,2,6,59,63,1,63,5,67,2,10,67,71,1,9,71,75,1,75,13,79,1,10,79,83,2,83,13,87,1,87,6,91,1,5,91,95,2,95,9,99,1,5,99,103,1,103,6,107,2,107,13,111,1,111,10,115,2,10,115,119,1,9,119,123,1,123,9,127,1,13,127,131,2,10,131,135,1,135,5,139,1,2,139,143,1,143,5,0,99,2,0,14,0
|
||||
@@ -4,6 +4,7 @@
|
||||
{
|
||||
private static void Main()
|
||||
{
|
||||
//Day1.Execute();
|
||||
Day2.Execute();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user