Skip to content

Instantly share code, notes, and snippets.

@alvineadel
alvineadel / 1. Main.md
Last active Dec 30, 2015
UVA - 11172 - Relational Operators
View Major File.java
import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner in = new Scanner(System.in);
@alvineadel
alvineadel / 0_reuse_code.js
Created Dec 5, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@alvineadel
alvineadel / 1. Main.md
Last active Dec 30, 2015
UVA - 10038 - Jolly Jumpers
View 1. Main.md

Problem E: Jolly Jumpers

A sequence of n > 0 integers is called a jolly jumper if the absolute values of the difference between successive elements take on all the values 1 through n-1. For instance,

1 4 2 3
is a jolly jumper, because the absolutes differences are 3, 2, and 1 respectively. The definition implies that any sequence of a single