Preparerat för dag 7
This commit is contained in:
53
2018_07/2018_07.csproj
Normal file
53
2018_07/2018_07.csproj
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{0C8DD4E6-4481-4230-B528-D2F0FDE4E6A7}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>_2018_07</RootNamespace>
|
||||||
|
<AssemblyName>2018_07</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
6
2018_07/App.config
Normal file
6
2018_07/App.config
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
15
2018_07/Program.cs
Normal file
15
2018_07/Program.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace _2018_07
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
2018_07/Properties/AssemblyInfo.cs
Normal file
36
2018_07/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("2018_07")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("2018_07")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("0c8dd4e6-4481-4230-b528-d2f0fde4e6a7")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2018_05", "2018_05\2018_05.
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2018_06", "2018_06\2018_06.csproj", "{081924FB-199D-4EF7-85C2-E4DF15829C43}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2018_06", "2018_06\2018_06.csproj", "{081924FB-199D-4EF7-85C2-E4DF15829C43}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2018_07", "2018_07\2018_07.csproj", "{0C8DD4E6-4481-4230-B528-D2F0FDE4E6A7}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -51,6 +53,10 @@ Global
|
|||||||
{081924FB-199D-4EF7-85C2-E4DF15829C43}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{081924FB-199D-4EF7-85C2-E4DF15829C43}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{081924FB-199D-4EF7-85C2-E4DF15829C43}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{081924FB-199D-4EF7-85C2-E4DF15829C43}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{081924FB-199D-4EF7-85C2-E4DF15829C43}.Release|Any CPU.Build.0 = Release|Any CPU
|
{081924FB-199D-4EF7-85C2-E4DF15829C43}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{0C8DD4E6-4481-4230-B528-D2F0FDE4E6A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{0C8DD4E6-4481-4230-B528-D2F0FDE4E6A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{0C8DD4E6-4481-4230-B528-D2F0FDE4E6A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{0C8DD4E6-4481-4230-B528-D2F0FDE4E6A7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
101
Data/AdventOfCode_181207/2018_07_data.txt
Normal file
101
Data/AdventOfCode_181207/2018_07_data.txt
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
Step B must be finished before step X can begin.
|
||||||
|
Step H must be finished before step P can begin.
|
||||||
|
Step Y must be finished before step J can begin.
|
||||||
|
Step Z must be finished before step I can begin.
|
||||||
|
Step T must be finished before step U can begin.
|
||||||
|
Step R must be finished before step C can begin.
|
||||||
|
Step S must be finished before step J can begin.
|
||||||
|
Step W must be finished before step J can begin.
|
||||||
|
Step C must be finished before step L can begin.
|
||||||
|
Step L must be finished before step F can begin.
|
||||||
|
Step E must be finished before step G can begin.
|
||||||
|
Step A must be finished before step G can begin.
|
||||||
|
Step V must be finished before step X can begin.
|
||||||
|
Step U must be finished before step O can begin.
|
||||||
|
Step P must be finished before step F can begin.
|
||||||
|
Step O must be finished before step I can begin.
|
||||||
|
Step I must be finished before step F can begin.
|
||||||
|
Step K must be finished before step F can begin.
|
||||||
|
Step J must be finished before step F can begin.
|
||||||
|
Step G must be finished before step X can begin.
|
||||||
|
Step M must be finished before step X can begin.
|
||||||
|
Step F must be finished before step Q can begin.
|
||||||
|
Step Q must be finished before step N can begin.
|
||||||
|
Step D must be finished before step N can begin.
|
||||||
|
Step X must be finished before step N can begin.
|
||||||
|
Step I must be finished before step Q can begin.
|
||||||
|
Step U must be finished before step I can begin.
|
||||||
|
Step D must be finished before step X can begin.
|
||||||
|
Step B must be finished before step W can begin.
|
||||||
|
Step L must be finished before step N can begin.
|
||||||
|
Step U must be finished before step X can begin.
|
||||||
|
Step U must be finished before step J can begin.
|
||||||
|
Step C must be finished before step V can begin.
|
||||||
|
Step G must be finished before step N can begin.
|
||||||
|
Step S must be finished before step K can begin.
|
||||||
|
Step Q must be finished before step D can begin.
|
||||||
|
Step J must be finished before step X can begin.
|
||||||
|
Step V must be finished before step K can begin.
|
||||||
|
Step Z must be finished before step A can begin.
|
||||||
|
Step L must be finished before step M can begin.
|
||||||
|
Step H must be finished before step D can begin.
|
||||||
|
Step V must be finished before step Q can begin.
|
||||||
|
Step L must be finished before step V can begin.
|
||||||
|
Step S must be finished before step D can begin.
|
||||||
|
Step C must be finished before step Q can begin.
|
||||||
|
Step S must be finished before step L can begin.
|
||||||
|
Step E must be finished before step V can begin.
|
||||||
|
Step E must be finished before step P can begin.
|
||||||
|
Step C must be finished before step I can begin.
|
||||||
|
Step O must be finished before step K can begin.
|
||||||
|
Step H must be finished before step V can begin.
|
||||||
|
Step M must be finished before step F can begin.
|
||||||
|
Step K must be finished before step N can begin.
|
||||||
|
Step C must be finished before step X can begin.
|
||||||
|
Step G must be finished before step D can begin.
|
||||||
|
Step E must be finished before step U can begin.
|
||||||
|
Step R must be finished before step L can begin.
|
||||||
|
Step K must be finished before step G can begin.
|
||||||
|
Step W must be finished before step C can begin.
|
||||||
|
Step B must be finished before step L can begin.
|
||||||
|
Step L must be finished before step J can begin.
|
||||||
|
Step U must be finished before step D can begin.
|
||||||
|
Step I must be finished before step G can begin.
|
||||||
|
Step Q must be finished before step X can begin.
|
||||||
|
Step B must be finished before step M can begin.
|
||||||
|
Step T must be finished before step P can begin.
|
||||||
|
Step G must be finished before step Q can begin.
|
||||||
|
Step Y must be finished before step U can begin.
|
||||||
|
Step M must be finished before step D can begin.
|
||||||
|
Step P must be finished before step I can begin.
|
||||||
|
Step I must be finished before step K can begin.
|
||||||
|
Step O must be finished before step M can begin.
|
||||||
|
Step H must be finished before step Z can begin.
|
||||||
|
Step V must be finished before step M can begin.
|
||||||
|
Step P must be finished before step J can begin.
|
||||||
|
Step B must be finished before step U can begin.
|
||||||
|
Step E must be finished before step X can begin.
|
||||||
|
Step M must be finished before step Q can begin.
|
||||||
|
Step W must be finished before step L can begin.
|
||||||
|
Step O must be finished before step J can begin.
|
||||||
|
Step I must be finished before step X can begin.
|
||||||
|
Step J must be finished before step N can begin.
|
||||||
|
Step Y must be finished before step S can begin.
|
||||||
|
Step E must be finished before step D can begin.
|
||||||
|
Step M must be finished before step N can begin.
|
||||||
|
Step E must be finished before step O can begin.
|
||||||
|
Step I must be finished before step D can begin.
|
||||||
|
Step V must be finished before step N can begin.
|
||||||
|
Step R must be finished before step X can begin.
|
||||||
|
Step Z must be finished before step O can begin.
|
||||||
|
Step O must be finished before step X can begin.
|
||||||
|
Step I must be finished before step J can begin.
|
||||||
|
Step S must be finished before step E can begin.
|
||||||
|
Step E must be finished before step Q can begin.
|
||||||
|
Step J must be finished before step Q can begin.
|
||||||
|
Step H must be finished before step Y can begin.
|
||||||
|
Step T must be finished before step G can begin.
|
||||||
|
Step S must be finished before step A can begin.
|
||||||
|
Step P must be finished before step K can begin.
|
||||||
|
Step A must be finished before step D can begin.
|
||||||
|
Step B must be finished before step P can begin.
|
||||||
Reference in New Issue
Block a user