Skip to content

Instantly share code, notes, and snippets.

@ravgoundar
ravgoundar / The Descent.js
Created February 8, 2015 02:08
CodinGame - Easy - The Descent
while (true) {
var inputs = readline().split(' ');
var SX = parseInt(inputs[0]);
var SY = parseInt(inputs[1]);
var maxHeight = 0;
var target = null;
for (var i = 0; i < 8; i++) {
var MH = parseInt(readline());
if (MH >= maxHeight) {
@ravgoundar
ravgoundar / Power of Thor.js
Created February 8, 2015 02:06
CodinGame - Easy - Power of Thor (JavaScript)
var inputs = readline().split(' ');
var LX = parseInt(inputs[0]);
var LY = parseInt(inputs[1]);
var TX = parseInt(inputs[2]);
var TY = parseInt(inputs[3]);
while (true) {
var E = parseInt(readline());
if (TY == LY) {
if (TX < LX) {