Android Code Jam at Kyocera
Details
Join us for a laptop (tablets too, if you can compile code on it!) event at Kyocera's offices in UTC on Thursday, May 3 (6:00-8:00). This event will be interactive and involves code development, and limited to 12 people. For those without a portable development machine, I'll post the code after the event. If you really want to come without a computer to see other people type and mouse around, we can probably have some chairs set up too.
For this meeting, I wanted to introduce people to the Google Code Jams, if you have not heard of them. The specific Problem for the night will be "All Your Base".
http://code.google.com/codejam/contest/189252/dashboard#s=p0
Before the event, be sure to have a programming environment ready to go on your computer. (Many thanks to Dave for the previous laptop meeting where we helped everyone install Eclipse on the systems.) If you need help installing Eclipse, I am sure a USB drive will be floating around with the install image. However, you'll be behind the power curve for the evening!
I am looking for participants to create an Android program solution for the Code Jam problem, but any code environment will work - so long as you are writing code. For the meeting:
You can have the entire program written, and help others You can have a basic input/output framework set up (EditBox & TextBox, with a Go button), and code a solution to the problem at the event You have your IDE ready to go and code everything at the event Here is the contents of the link above:
This contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Guide (http://code.google.com/codejam/quickstart.html) to get started.
Small input
8 points
Large input
15 points
Problem
In A.D. 2100, aliens came to Earth. They wrote a message in a cryptic language, and next to it they wrote a series of symbols. We've come to the conclusion that the symbols indicate a number: the number of seconds before war begins!
Unfortunately we have no idea what each symbol means. We've decided that each symbol indicates one digit, but we aren't sure what each digit means or what base the aliens are using. For example, if they wrote "ab2ac999", they could have meant "31536000" in base 10 -- exactly one year -- or they could have meant "12314555" in base 6 -- 398951 seconds, or about four and a half days. We are sure of three things: the number is positive; like us, the aliens will never start a number with a zero; and they aren't using unary (base 1).
Your job is to determine the minimum possible number of seconds before war begins.
Input
The first line of input contains a single integer, T. T test cases follow. Each test case is a string on a line by itself. The line will contain only characters in the 'a' to 'z' and '0' to '9' ranges (with no spaces and no punctuation), representing the message the aliens left us. The test cases are independent, and can be in different bases with the symbols meaning different things.
Output
For each test case, output a line in the following format:
Case # X: V Where X is the case number (starting from 1) and V is the minimum number of seconds before war begins.
Limits
1 ≤ T ≤ 100
The answer will never exceed 1018
Small dataset
1 ≤ the length of each line < 10
Large dataset
1 ≤ the length of each line < 61
Sample
Input
Output
3
11001001
cats
zig
Case #1: 201
Case #2: 75
Case #3: 11
