Skip to content

Instantly share code, notes, and snippets.

View APIUM's full-sized avatar

Algy APIUM

  • Melbourne, Australia
View GitHub Profile
@APIUM
APIUM / dailyProgrammer-277-FakeCoins.py
Created August 28, 2016 15:28
My solution for the Reddit /r/dailyprogrammer challenge 277 - Fake Coins
#! /usr/bin/python3
# Reddit Daily Programming Challenge 277 - Fake Coins
# The challenge input
challenge = """abcd efgh equal
abci efjk left
abij efgl equal
mnopqrs tuvwxyz equal"""
# Global variables
from __future__ import division
import math
# user input fr number of levels to go down
nmlevels = int(raw_input("Enter number of levels: "))
# number of levels program is currently on
currentlevel = 0
#define e at level 0
e = 0