Skip to content

Instantly share code, notes, and snippets.

CGjupoulton

Block or report user

Report or block CGjupoulton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kotlinStarterAI.kt
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 {
View ?.md

iVBORw0KGgoAAAANSUhEUgAAAGIAAABkCAYAAAB9/OUTAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wkJDB4yOZB5TAAAIABJREFUeNrlnXecVNXZ+L+3TN+Z2V6Bpe8uVcACKKAY1KBiIfhGY0tRYjR5NSYxlvhqYorGGNNMzJtYo2DUGIxdFCtWBKQsZVkWtrB9dnq7957fH3NnuYyzy5pokje/+/mcz8zcuffcc5/nPP05z1H41x0lwDzgHOAbwJ1ANfDCv2AsdwO/A440x+ACBoAk/8GHH+gERLZVVFSIGTNmZH///p88nocBMWfOHFFcXCys4wJ2AN7/VESsBcTZZ58tbrzxRtHX1yeyx5e+9KUsAL6dc4/0D7ahjhsBcdVVVw2OobW1Vdxwww1i2bJl2bE88Z+IhDMAsWLFCpFMJgdfftGiRaK6ulrs3btXLF++PAuAOZ8gIvIh5WhAXHTRRWLPnj2iuLhYLF26dHBMsVhMnHLKKdmxHP2fhoj9Ho9HPPXUU6KxsVEIIYTT6RRAP9BSWFgo6uvrsy8/4zCIkIdoI0XEMYBoaGgQfr9fAHuAQEVFhRBCiE2bNonHH388O5at/0lIuBIQd911l9iwYYPo6uoSTz/9dPZFF5rXXGcK6yWW+2RAsTR1hE3JaVlEWY8zgRctrPBUQLz66quio6NDbN68Wdx+++3ZMX7xPwEJ0wHh9/vFww8/LN555x0hhBDz5s0TpuAe6pBNoNoAu9kcI2zZ621mUy0IGe4YOG3ZMiGEEG+99Za49957hcPhEIABjPu/jITxgJBlWcyaNUtUVVWJ+oYGceEFFwhZkrKz7axh7lcBJ+A2m8dsBUO07P/Z6x3m/U4TMcMJ74sAoaqquOjii8XEiRPFqFGjxKxZs6ya1KeCDOWfgIhHgAkrVqxgzpw5TJw4kY0ffMCb69dzx09+wodbtxKJRKqBey33VJu2RcCkGLeFLSk5rMc605Wc71mZ

View Starter.py
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
@CGjupoulton
CGjupoulton / Starter.js
Created Sep 9, 2019
JavaScript Starter
View Starter.js
/**
* 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;
View Starter.java
import static java.lang.Math.*;
import java.io.*;
import java.nio.*;
import java.util.*;
class Coord {
final int x;
final int y;
View Starter.cs
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
enum EntityType
{
View Starter.cpp
#include <array>
#include <cassert>
#include <iostream>
#include <vector>
using namespace std;
//********************************* UTILS **********************************************
//----------------------------------Point----------------------------------------------------------
You can’t perform that action at this time.