Day | Status |
---|---|
1 py, cs | ✔️ |
2 py, cs | ✔️ |
3 | ❌ |
4 | ❌ |
5 | ❌ |
6 | ❌ |
7 | ❌ |
8 | ❌ |
9 | ❌ |
10 | ❌ |
11 | ❌ |
12 | ❌ |
13 | ❌ |
14 | ❌ |
15 | ❌ |
16 | ❌ |
17 | ❌ |
18 | ❌ |
19 | ❌ |
20 | ❌ |
21 | ❌ |
22 | ❌ |
23 | ❌ |
24 | ❌ |
25 | ❌ |
# Imports
import os.path as Path
# Set global path
path = Path.join(Path.dirname(__file__), 'dayX.txt')
# Main
def part1():
global path
with open(path, 'r') as file:
# PART 1 HERE
def part2():
global path
with open(path, 'r') as file:
# PART 2 HERE
def main():
part1()
part2()
if __name__ == "__main__":
main()
// Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Main
namespace CSharp
{
static class DayX
{
// Set global path
static readonly string[] inputs = File.ReadAllLines(Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory() + "..\\..\\..\\..\\inputs\\dayX.txt")), Encoding.UTF8);
public static void Part1()
{
//PART 1 HERE
}
public static void Part2()
{
//PART 2 HERE
}
}
}