
-----------------------------------
Hikaru79
Mon Jan 23, 2006 8:22 am

CCC Prep -- '98
-----------------------------------
This year's CCC is looming near, and what better way to prepare than reviewing previous years' CCC's? :) I'll just post the questions to 1998's senior contest, and let's try to get together a large selection of different solutions. Remember, the CCC allows any language to be used, so if you consider a question to be relatively simple, or you've done it before, challenge yourself by doing it in a language you're still just learning.

[url=http://contest-cemc.uwaterloo.ca/ccc/1998/1a-prob.html]Problem 1 -- Censors
[url=http://contest-cemc.uwaterloo.ca/ccc/1998/1b-prob.html]Problem 2 -- Cross-Number Puzzle
[url=http://contest-cemc.uwaterloo.ca/ccc/1998/1c-prob.html]Problem 3 -- Mars Rover
[url=http://contest-cemc.uwaterloo.ca/ccc/1998/1d-prob.html]Problem 4 -- Lottery
[url=http://contest-cemc.uwaterloo.ca/ccc/1998/1e-prob.html"]Problem 5 -- Passage

-----------------------------------
zylum
Mon Jan 23, 2006 9:50 am


-----------------------------------
//CCC '98 Senior Problem 1
//Author: Michael Lucarz aka zylum

import java.io.*;
import java.util.*;
class Censor {
  public static void main(String

-----------------------------------
rizzix
Mon Jan 23, 2006 10:31 am


-----------------------------------
clean it up... import java.io.*;
import java.util.*;

class Censor {
  public static void main(String

-----------------------------------
Andy
Mon Jan 23, 2006 11:12 am


-----------------------------------

//CCC '98 Senior Problem 2
//Author: Andy
#include 
#include 

using namespace std;

bool checkMersenne(int a)
{
	for (int i = 3; i = 1000) && checkMersenne(pow(2, i) - 1))
			fout 0) then %(ar (x) (1) not= "(") and (ar (x) (*) not= ")") and (index (s, ar (x)) 