Search found 16 matches

by Grusewolf
Fri Mar 30, 2018 11:44 am
Forum: Challenges Solved
Topic: Type fastest
Replies: 14
Views: 1143

I manipulated the clipboard in endless loop too remove 'FOO'. After start of the groovy script I did copy and paste in browser. import java.awt.datatransfer.StringSelection import java.awt.Toolkit import java.awt.datatransfer.* String currentContent = '' while (currentContent != 'stop') { sleep(100)...
by Grusewolf
Thu Mar 29, 2018 8:32 pm
Forum: Challenges Solved
Topic: A Repeat of Pi
Replies: 21
Views: 1875

This is my solution in groovy. It calculated 13 min String pi = new File("Pi_1Mio.txt").text int max = pi.size() int len = 1 int index = 0 while(index+len < max) { while(true) { int s = pi[index..<max].findAll(pi[index..<index+len]).size() if(s > 1) { println "${pi[index..<index+len]}...
by Grusewolf
Mon Mar 26, 2018 8:54 pm
Forum: Challenges
Topic: bigger fib
Replies: 27
Views: 44266

I spend hours to check my solution until I saw, my program printed a 'comma' instead of a decimal point. (OK, I am a german)
This was not accepted as solution. After changing this, I recognized, my result was right.
by Grusewolf
Fri Apr 18, 2014 4:13 pm
Forum: Challenges Solved
Topic: Lettered
Replies: 8
Views: 738

browser solves it for me

after decoding the characters I put the result in a minimal html page.

Code: Select all

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<p>℘ÕÙℜ©Θƒƒ∈∈</p>
</body>
</html>
Then the browser showed me the decoded html entities.
by Grusewolf
Thu Apr 10, 2014 10:01 pm
Forum: Challenges Solved
Topic: Substitute Teacher
Replies: 28
Views: 2557

this was a hard one

After several tries I startetd guessing character for character and build up a dictionary. To do this I wrote this little groovy script which showed me the ciphertext and under it the plaintext as far as conversion from dictonary was possible. All other characters where shown as '.' I started fillin...
by Grusewolf
Thu Apr 10, 2014 4:26 pm
Forum: Challenges Solved
Topic: How is your Grammar?
Replies: 16
Views: 1596

groovy

def dic = [ 'A' : 'is', 'B' : 'mm', 'C' : 'oo', 'D' : 'rgr', 'E' : 'ryg', 'F' : 'dth', 'G' : 'you', 'H' : 'esol', 'I' : 'ionA', 'J' : 'GDaBarA', 'K' : 'veECFHutI', 'L' : 'PQ', 'M' : 'n', 'N' : 'm', 'O' : 'oaNcho', 'P' : 'MO', 'Q' : 'NR', 'R' : 'sky', 'S' : 'JKL'] def text = 'S' while(text.any{dic[i...
by Grusewolf
Thu Apr 10, 2014 12:06 pm
Forum: Challenges Solved
Topic: The Lightest Touch
Replies: 6
Views: 1142

I got the hint in "the lightest touch" and found a translater at this website:
https://www.cbm.de/aktiv-werden/interak ... 11587.html
by Grusewolf
Sun Apr 06, 2014 9:23 pm
Forum: Challenges Solved
Topic: ones and zeroes
Replies: 3
Views: 937

tried a one liner in groovy "01110101 01110011 01100101 00100000 01110111 01100101 01100100 01101110 01100101 01110011 01100100 01100001 01111001 00100000 01100110 01101111 01110010 00100000 01110100 01101000 01100101 00100000 01100001 01101110 01110011 01110111 01100101 01110010".split()....
by Grusewolf
Sun Apr 06, 2014 3:26 pm
Forum: Challenges Solved
Topic: Ave
Replies: 17
Views: 1710

solved in groovy

I produced all 26 possibilities for the key of caesar encryption and looked for something readable. 'AVE' gave the hint for Caesar. def cipher = 'cqrb lryqna rb fjh, fjh qjamna cqjw axc cqracnnw. qnan, hxd wnena twxf qxf oja cx bqroc! xq kh cqn fjh, cqn jwbfna rb mnjmvjwblqnbc.' as byte[] def asciiB...
by Grusewolf
Sat Apr 05, 2014 6:15 pm
Forum: Challenges Solved
Topic: Basic
Replies: 12
Views: 1054

I solved it in groovy in straight forward programing BigInteger number = 28679718602997181072337614380936720482949 def pow = 50 print "septal number: " while(pow >= 0) { def digitValue = 7.power(pow) def currentDigit = 0 while(number >= digitValue) { currentDigit++ number -= digitValue } p...
by Grusewolf
Wed Apr 02, 2014 8:08 pm
Forum: Challenges Solved
Topic: Growing Bacteria
Replies: 24
Views: 2693

I startet with a big solution containing a Bacteria class with age and 'liveOneDay' method, which seem to calculate correct numbers. But it also seemed to be running forever. So I startet again with this little groovy script. The generations list contains the bacteria generations with 1,2,3 and 4 da...
by Grusewolf
Tue Apr 01, 2014 8:47 pm
Forum: Challenges Solved
Topic: Rabbits everywhere
Replies: 7
Views: 639

I solved it in this way (groovy): def rabbits=0 for(i in 10..17) { rabbits += fib(i) } println rabbits def fib(n) { switch(n) { case 1: case 2: return 1 default: return fib(n-2) + fib(n-1) } } Since the fibonacci for 1 and 2 are defined as 1 I had no trouble with fibonacci of 0.
by Grusewolf
Tue Apr 01, 2014 7:49 pm
Forum: Challenges Solved
Topic: A Little Python
Replies: 6
Views: 731

reading it from the back

I read it straightbackward
my solution in groovy:

Code: Select all

def yRange = []
def sum = 0

(3..<11).each{y -> yRange+= y*y}
yRange.each {x -> sum+= x*(x-1)}

println sum
and I also learned, that pythons xrange area is exlusive upper bound.
by Grusewolf
Mon Mar 31, 2014 8:52 pm
Forum: Challenges Solved
Topic: A Piece of Pi
Replies: 7
Views: 808

I found the sequence by this Pi search engine:

http://pi.gerdlamprecht.de/
by Grusewolf
Sun Mar 23, 2014 11:22 am
Forum: Challenges Solved
Topic: Didactic Feedback Cipher 2
Replies: 0
Views: 1219

Didactic Feedback Cipher 2

I solved it in groovy. For the key k, it seems, that there is no way to calculate it and so the 1st plaintext byte (plain[0]) can just be guessed. Of course in this case, the first plain byte was not needed and guessing it after resolving was easy. def cipherString = '310a7718781f73...' def cipher =...