This file contains 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
#include <array> | |
#include <cassert> | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
//********************************* UTILS ********************************************** | |
//----------------------------------Point---------------------------------------------------------- |
This file contains 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
using System; | |
using System.Linq; | |
using System.IO; | |
using System.Text; | |
using System.Collections; | |
using System.Collections.Generic; | |
enum EntityType | |
{ |
This file contains 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 static java.lang.Math.*; | |
import java.io.*; | |
import java.nio.*; | |
import java.util.*; | |
class Coord { | |
final int x; | |
final int y; |
This file contains 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
/** | |
* Deliver more ore to hq (left side of the map) than your opponent. Use radars to find ore but beware of traps! | |
**/ | |
let inputs = readline().split(' '); | |
const MAP_WIDTH = parseInt(inputs[0]); | |
const MAP_HEIGHT = parseInt(inputs[1]); // size of the map | |
const NONE = -1; | |
const ROBOT_ALLY = 0; | |
const ROBOT_ENEMY = 1; |
This file contains 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 kotlin.math.* | |
import java.util.* | |
data class Coord(val x: Int, val y: Int) { | |
constructor(input: Scanner) : this(input.nextInt(), input.nextInt()) | |
operator fun plus(other: Coord): Coord { |
This file contains 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 sys | |
import math | |
# Deliver more amadeusium to hq (left side of the map) than your opponent. Use radars to find amadeusium but beware of traps! | |
# height: size of the map | |
width, height = [int(i) for i in input().split()] | |
NONE = -1 | |
ROBOT_ALLY = 0 |