2020-11-30 16:27:07 +00:00
|
|
|
using System;
|
|
|
|
using static System.Console;
|
|
|
|
using System.Collections.Generic;
|
2020-12-01 16:04:50 +00:00
|
|
|
using System.IO;
|
|
|
|
using System.Linq;
|
2020-11-30 16:27:07 +00:00
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
namespace AdventOfCode {
|
|
|
|
|
2020-12-02 17:03:45 +00:00
|
|
|
public class Util {
|
|
|
|
public static string RootDir =
|
2020-12-01 16:04:50 +00:00
|
|
|
Environment.GetEnvironmentVariable("HOME") + "/src/adventofcode/2020/";
|
|
|
|
|
2020-12-02 17:03:45 +00:00
|
|
|
public static List<int> ReadInts(string filename) {
|
2020-12-01 16:04:50 +00:00
|
|
|
string[] lines = File.ReadAllLines(filename);
|
2020-12-01 18:08:02 +00:00
|
|
|
return lines.Select(int.Parse).ToList();
|
2020-12-01 16:04:50 +00:00
|
|
|
}
|
2020-12-02 17:03:45 +00:00
|
|
|
}
|
2020-12-01 16:04:50 +00:00
|
|
|
|
2020-12-02 17:03:45 +00:00
|
|
|
public class Program {
|
2020-11-30 16:27:07 +00:00
|
|
|
static void Main(string[] args) {
|
2020-12-03 15:46:44 +00:00
|
|
|
Day03.Test();
|
2020-11-30 16:27:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|