This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package day05; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import util.FileIO; | |
public class Day05 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package src.gelataria; | |
public class GeladoDia { | |
private String sabor; //Sabor do dia | |
private int preco; //Pre�o do gelado | |
// valor total recebido pelas unidades de gelado do dia j� vendidos | |
private int valor_recebido; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Represents a single human being | |
* | |
* This class is basically only a storage | |
* there is no direct logic in this class | |
* | |
*/ | |
/** | |
* @author ATGEMET | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Day25 { | |
public final static long START = 20151125; | |
public final static int MULTIPLIER = 252533; | |
public final static int DIVISOR = 33554393; | |
public final static int TARGET_ROW = 3010; | |
public final static int TARGET_COL = 3019; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
public class Day23 { | |
private final static String FILENAME = "./InputDay23.txt"; | |
private List<String> input; | |
private List<Instruction> program; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
public class Day21 { | |
static final int BOSS_HIT_POINTS = 104; | |
static final int BOSS_DAMAGE = 8; | |
static final int BOSS_ARMOR = 1; | |
List<Item> weapons = new ArrayList<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Day20 { | |
private final static int TARGET = 29000000; | |
private final static int MAX = 1000000; | |
static int[] presents = new int[MAX]; | |
public static void main(String[] args) { | |
// Part 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
public class Day19v2 { | |
public static String replace(String where, String what, String with, int pos) { | |
return where.substring(0, pos) + with + where.substring(pos + what.length()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
public class Day19 { | |
public static String replace(String where, String what, String with, int pos) { | |
return where.substring(0, pos) + with + where.substring(pos + what.length()); | |
} | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.List; | |
public class Day18 { | |
private final static String FILENAME = ".\\InputDay18.txt"; | |
private final static int ITERATIONS = 100; | |
private boolean[][] board = new boolean[100][100]; | |
private boolean[][] origBoard = new boolean[100][100]; |
NewerOlder