mirror of
https://github.com/Zormm/Advent-Of-Code-2022.git
synced 2026-02-26 07:26:51 +01:00
Renamed Folders and added Idea for Day 19
This commit is contained in:
1 parent
6d6ff4f162
commit
e8a2145715
47 files changed
+51
-1043
No files matched your search
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"java.dependency.packagePresentation": "hierarchical"
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,28 +0,0 @@
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
try {
|
||||
RandomAccessFile file = new RandomAccessFile("input.txt", "r");
|
||||
String str;
|
||||
|
||||
//Part 1
|
||||
System.out.print("Part 1: ");
|
||||
|
||||
while ((str = file.readLine()) != null) {
|
||||
System.out.println(str);
|
||||
}
|
||||
//Part 2
|
||||
System.out.print("Part 2: ");
|
||||
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
public class main {
|
||||
public static void main(String[] args) throws IOException {
|
||||
RandomAccessFile file = new RandomAccessFile("input.txt", "r");
|
||||
String str;
|
||||
|
||||
//Part 1
|
||||
System.out.print("Part 1: ");
|
||||
|
||||
while ((str = file.readLine()) != null) {
|
||||
System.out.println(str);
|
||||
|
||||
simulateRobotWithBlueprints()
|
||||
}
|
||||
//Part 2
|
||||
System.out.print("Part 2: ");
|
||||
}
|
||||
|
||||
public int simulateRobotWithBlueprints(int costOfOreRobot, int costOfClayRobot, int costOfObsidianRobot, int costOfGeodeRobot, int timeInMinutes) {
|
||||
int maximumNumberOfOpenedGeodes = 0;
|
||||
|
||||
return maximumNumberOfOpenedGeodes;
|
||||
}
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,6 @@
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,21 @@
|
||||
import java.io.IOException;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
public class main {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
RandomAccessFile file = new RandomAccessFile("input.txt", "r");
|
||||
String str;
|
||||
|
||||
//Part 1
|
||||
System.out.print("Part 1: ");
|
||||
|
||||
while ((str = file.readLine()) != null) {
|
||||
System.out.println(str);
|
||||
}
|
||||
//Part 2
|
||||
System.out.print("Part 2: ");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user