previndexinfonext

code guessing, round #90 (completed)

started at ; stage 2 at ; ended at

specification

just output the following text in any language.

green eggs and ham is a-- I don't have time for this, man. your challenge is to print the text below. as any language is allowed, there is no fixed API.

I am Sam. I am Sam. Sam I am.

That Sam-I-am! That Sam-I-am! I do not like that Sam-I-am!

Would you like green eggs and ham?

I do not like them, Sam-I-am.
I do not like green eggs and ham.

Would you like them here or there?

I would not like them here or there.
I would not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you like them in a house?
Would you like them with a mouse?

I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you eat them in a box?
Would you eat them with a fox?

Not in a box. Not with a fox.
Not in a house. Not with a mouse.
I would not eat them here or there.
I would not eat them anywhere.
I would not eat green eggs and ham.
I do not like them, Sam-I-am.

Would you? Could you? In a car?
Eat them! Eat them! Here they are.

I would not, could not, in a car.

You may like them. You will see.
You may like them in a tree!

I would not, could not in a tree.
Not in a car! You let me be.
I do not like them in a box.
I do not like them with a fox.
I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

A train! A train! A train! A train!
Could you, would you on a train?

Not on train! Not in a tree!
Not in a car! Sam! Let me be!
I would not, could not, in a box.
I would not, could not, with a fox.
I will not eat them in a house.
I will not eat them here or there.
I will not eat them anywhere.
I do not eat green eggs and ham.
I do not like them, Sam-I-am.

Say! In the dark? Here in the dark!
Would you, could you, in the dark?

I would not, could not, in the dark.

Would you could you in the rain?

I would not, could not in the rain.
Not in the dark. Not on a train.
Not in a car. Not in a tree.
I do not like them, Sam, you see.
Not in a house. Not in a box.
Not with a mouse. Not with a fox.
I will not eat them here or there.
I do not like them anywhere!

You do not like green eggs and ham?

I do not like them, Sam-I-am.

Could you, would you, with a goat?

I would not, could not with a goat!

Would you, could you, on a boat?

I could not, would not, on a boat.
I will not, will not, with a goat.
I will not eat them in the rain.
Not in the dark! Not in a tree!
Not in a car! You let me be!
I do not like them in a box.
I do not like them with a fox.
I will not eat them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere!
I do not like green eggs and ham!
I do not like them, Sam-I-am.

You do not like them. So you say.
Try them! Try them! And you may.
Try them and you may, I say.

Sam! If you let me be,
I will try them. You will see.

(... And he tries them ...)

Say! I like green eggs and ham!
I do! I like them, Sam-I-am!
And I would eat them in a boat.
And I would eat them with a goat...
And I will eat them, in the rain.
And in the dark. And on a train.
And in a car. And in a tree.
They are so good, so good, you see!
So I will eat them in a box.
And I will eat them with a fox.
And I will eat them in a house.
And I will eat them with a mouse.
And I will eat them here and there.
Say! I will eat them anywhere!
I do so like green eggs and ham!
Thank you! Thank you, Sam-I-am.

results

  1. 👑 Dolphy +4 -2 = 2
    1. essaie
    2. seshoumara
    3. kimapr (was JJRubes)
    4. JJRubes (was haru~)
    5. Makefile_dot_in
    6. oleander
    7. haru~ (was kimapr)
  2. haru~ +2 -0 = 2
    1. kimapr (was Dolphy)
    2. essaie
    3. oleander (was seshoumara)
    4. JJRubes
    5. seshoumara (was Makefile_dot_in)
    6. Dolphy (was oleander)
    7. Makefile_dot_in (was kimapr)
  3. JJRubes +3 -2 = 1
    1. Dolphy
    2. haru~ (was essaie)
    3. seshoumara
    4. essaie (was haru~)
    5. Makefile_dot_in
    6. kimapr (was oleander)
    7. oleander (was kimapr)
  4. Makefile_dot_in +3 -2 = 1
    1. JJRubes (was Dolphy)
    2. essaie
    3. seshoumara
    4. Dolphy (was JJRubes)
    5. oleander (was haru~)
    6. haru~ (was oleander)
    7. kimapr
  5. kimapr +2 -2 = 0
    1. oleander (was Dolphy)
    2. essaie
    3. Makefile_dot_in (was seshoumara)
    4. JJRubes
    5. Dolphy (was haru~)
    6. haru~ (was Makefile_dot_in)
    7. seshoumara (was oleander)
  6. oleander +1 -1 = 0
    1. essaie (was Dolphy)
    2. haru~ (was essaie)
    3. seshoumara
    4. kimapr (was JJRubes)
    5. Dolphy (was haru~)
    6. JJRubes (was Makefile_dot_in)
    7. Makefile_dot_in (was kimapr)
  7. essaie +2 -4 = -2
    1. oleander (was Dolphy)
    2. seshoumara
    3. haru~ (was JJRubes)
    4. JJRubes (was haru~)
    5. Dolphy (was Makefile_dot_in)
    6. Makefile_dot_in (was oleander)
    7. kimapr
  8. seshoumara +1 -5 = -4
    1. Dolphy
    2. kimapr (was essaie)
    3. Makefile_dot_in (was JJRubes)
    4. JJRubes (was haru~)
    5. oleander (was Makefile_dot_in)
    6. essaie (was oleander)
    7. haru~ (was kimapr)

entries

you can download all the entries

entry #1

written by Dolphy
submitted at
1 like

guesses
comments 0

post a comment


download.txt ASCII text
1
https://mega.nz/file/Yc4D3KAa#P4DPTURjrw5ssIGKijzCbK-Jg1fROX1X3q9vJ2YSbcE

entry #2

written by essaie
submitted at
0 likes

guesses
comments 0

post a comment


file (2).txt ASCII text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
(sorry this is boring :u i was going to do sometdisg cooler)!(I am Sam. I am Sam. Sam I am.

That Sam-I-am! That Sam-I-am! I do not like that Sam-I-am!

Would you like green eggs and ham?

I do not like them, Sam-I-am.
I do not like green eggs and ham.

Would you like them here or there?

I would not like them here or there.
I would not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you like them in a house?
Would you like them with a mouse?

I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you eat them in a box?
Would you eat them with a fox?

Not in a box. Not with a fox.
Not in a house. Not with a mouse.
I would not eat them here or there.
I would not eat them anywhere.
I would not eat green eggs and ham.
I do not like them, Sam-I-am.

Would you? Could you? In a car?
Eat them! Eat them! Here they are.

I would not, could not, in a car.

You may like them. You will see.
You may like them in a tree!

I would not, could not in a tree.
Not in a car! You let me be.
I do not like them in a box.
I do not like them with a fox.
I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

A train! A train! A train! A train!
Could you, would you on a train?

Not on train! Not in a tree!
Not in a car! Sam! Let me be!
I would not, could not, in a box.
I would not, could not, with a fox.
I will not eat them in a house.
I will not eat them here or there.
I will not eat them anywhere.
I do not eat green eggs and ham.
I do not like them, Sam-I-am.

Say! In the dark? Here in the dark!
Would you, could you, in the dark?

I would not, could not, in the dark.

Would you could you in the rain?

I would not, could not in the rain.
Not in the dark. Not on a train.
Not in a car. Not in a tree.
I do not like them, Sam, you see.
Not in a house. Not in a box.
Not with a mouse. Not with a fox.
I will not eat them here or there.
I do not like them anywhere!

You do not like green eggs and ham?

I do not like them, Sam-I-am.

Could you, would you, with a goat?

I would not, could not with a goat!

Would you, could you, on a boat?

I could not, would not, on a boat.
I will not, will not, with a goat.
I will not eat them in the rain.
Not in the dark! Not in a tree!
Not in a car! You let me be!
I do not like them in a box.
I do not like them with a fox.
I will not eat them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere!
I do not like green eggs and ham!
I do not like them, Sam-I-am.

You do not like them. So you say.
Try them! Try them! And you may.
Try them and you may, I say.

Sam! If you let me be,
I will try them. You will see.

(... And he tries them ...)

Say! I like green eggs and ham!
I do! I like them, Sam-I-am!
And I would eat them in a boat.
And I would eat them with a goat...
And I will eat them, in the rain.
And in the dark. And on a train.
And in a car. And in a tree.
They are so good, so good, you see!
So I will eat them in a box.
And I will eat them with a fox.
And I will eat them in a house.
And I will eat them with a mouse.
And I will eat them here and there.
Say! I will eat them anywhere!
I do so like green eggs and ham!
Thank you! Thank you, Sam-I-am.)S

entry #3

written by seshoumara
submitted at
0 likes

guesses
comments 0

post a comment


I-am-not-Sam.sed ASCII text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cI am Sam. I am Sam. Sam I am.\n\nThat Sam-I-am! That Sam-I-am! I do not like that Sam-I-am!\n\nWould you like green eggs and ham?\n\
I do not like them, Sam-I-am.\nI do not like green eggs and ham.\n\nWould you like them here or there?\n\nI would not like them here or there.\
I would not like them anywhere.\nI do not like green eggs and ham.\nI do not like them, Sam-I-am.\n\nWould you like them in a house?\
Would you like then with a mouse?\n\nI do not like them in a house.\nI do not like them with a mouse.\nI do not like them here or there.\
I do not like them anywhere.\nI do not like green eggs and ham.\nI do not like them, Sam-I-am.\n\nWould you eat them in a box?\
Would you eat them with a fox?\n\nNot in a box. Not with a fox.\nNot in a house. Not with a mouse.\nI would not eat them here or there.\
I would not eat them anywhere.\nI would not eat green eggs and ham.\nI do not like them, Sam-I-am.\n\nWould you? Could you? In a car?\
Eat them! Eat them! Here they are.\n\nI would not, could not, in a car.\n\nYou may like them. You will see.\nYou may like them in a tree!\n\
I would not, could not in a tree.\nNot in a car! You let me be.\nI do not like them in a box.\nI do not like them with a fox.\
I do not like them in a house.\nI do not like them with a mouse.\nI do not like them here or there.\nI do not like them anywhere.\
I do not like green eggs and ham.\nI do not like them, Sam-I-am.\n\nA train! A train! A train! A train!\nCould you, would you on a train?\n\
Not on train! Not in a tree!\nNot in a car! Sam! Let me be!\nI would not, could not, in a box.\nI would not, could not, with a fox.\
I will not eat them in a house.\nI will not eat them here or there.\nI will not eat them anywhere.\nI do not eat green eggs and ham.\
I do not like them, Sam-I-am.\n\nSay! In the dark? Here in the dark!\nWould you, could you, in the dark?\n\nI would not, could not, in the dark.\
\nWould you could you in the rain?\n\nI would not, could not in the rain.\nNot in the dark. Not on a train.\nNot in a car. Not in a tree.\
I do not like them, Sam, you see.\nNot in a house. Not in a box.\nNot with a mouse. Not with a fox.\nI will not eat them here or there.\
I do not like them anywhere!\n\nYou do not like green eggs and ham?\n\nI do not like them, Sam-I-am.\n\nCould you, would you, with a goat?\n\
I would not, could not with a goat!\n\nWould you, could you, on a boat?\n\nI could not, would not, on a boat.\nI will not, will not, with a goat.\
I will not eat them in the rain.\nNot in the dark! Not in a tree!\nNot in a car! You let me be!\nI do not like them in a box.\
I do not like them with a fox.\nI will not eat them in a house.\nI do not like them with a mouse.\nI do not like them here or there.\
I do not like them anywhere!\nI do not like green eggs and ham!\nI do not like them, Sam-I-am.\n\nYou do not like them. So you say.\
Try them! Try them! And you may.\nTry them and you may, I say.\n\nSam! If you let me be,\nI will try them. You will see.\n\
(... And he tries them ...)\n\nSay! I like green eggs and ham!\nI do! I like them, Sam-I-am!\nAnd I would eat them in a boat.\
And I would eat them with a goat...\nAnd I will eat them, in the rain.\nAnd in the dark. And on a train.\nAnd in a car. And in a tree.\
They are so good, so good, you see!\nSo I will eat them in a box.\nAnd I will eat them with a fox.\nAnd I will eat them in a house.\
And I will eat them with a mouse.\nAnd I will eat them here and there.\nSay! I will eat them anywhere!\nI do so like green eggs and ham!\
Thank you! Thank you, Sam-I-am.

entry #4

written by JJRubes
submitted at
2 likes

guesses
comments 0

post a comment


compress.c ASCII text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#include <stdio.h>

#define BUFFER_SIZE 512

FILE *input = NULL, *output = NULL;
char buffer[BUFFER_SIZE];
int bufferFill = 0, start = 0;

char bufferc(int index) {
    if(index >= bufferFill) {
        // the cub does not concern themself with string
        // terminator vulnerabilites
        return 0;
    }
    return buffer[(index + start) % BUFFER_SIZE];
}

int findFirst(char c) {
    for(int i = 0; i < bufferFill; i++) {
        if(bufferc(i) == c) {
            return i;
        }
    }
    return -1;
}

/**
 * checks if the next character from the offset matches the given c
 * length is exclusive of c
 */
int matchesNext(char c, int offset, int length) {
    // handles the case when the token overruns the buffer
    int charPos = offset + length % (bufferFill - offset);
    if(bufferc(charPos) == c) {
        return 1;
    }
    return 0;
}

/**
 * checks if 2 strings starting at offset0 and offset1 are the same
 */
int matchesOffset(int offset0, int offset1, int length) {
    for(int i = 0; i < length; i++) {
        if(!matchesNext(bufferc(offset0 + i), offset1, i)) {
            return 0;
        }
    }
    return 1;
}

/**
 * returns the offset if the next character is at the end of
 * the current string, or finds a new offset if it exists,
 * or returns -1
 * length is exclusive of c
 */
int findExtension(char c, int offset, int length) {
    if(matchesNext(c, offset, length)) {
        return offset;
    }

    for(int next = offset + 1; next < bufferFill; next++) {
        if(matchesOffset(offset, next, length)) {
            if(matchesNext(c, next, length)) {
                return next;
            }
        }
    }
    return -1;
}

void appendChar(char c) {
    if(bufferFill < BUFFER_SIZE) {
        buffer[bufferFill] = c;
        bufferFill++;
        return;
    }
    buffer[start % BUFFER_SIZE] = c;
    start = (start + 1) % BUFFER_SIZE;
}

int addTokenToBuffer(int offset, int length) {
    // using a temp variable because appendChar will sometimes
    // modify start and screw over the indexing
    int startStart = start;
    for(int i = 0; i < length; i++) {
        appendChar(buffer[(offset + i + startStart) % bufferFill]);
    }
}

// add to the end of the output file
int commitToken(int offset, int length) {
    // bytes:
    // 1lll lllo  oooo oooo
    char firstByte = 0x80;
    firstByte |= (length - 2) << 1;
    firstByte |= offset >> 8 & 0x1;
    char secondByte = offset & 0xff;
    fprintf(output, "%c%c", firstByte, secondByte);
}

int commitLiteral(char c) {
    fprintf(output, "%c", c);
}

// returns -1 once it reaches EOF
int addToken() {
    // read in a char
    char firstChar = fgetc(input);
    if(firstChar == -1) {
        return -1;
    }
    // find where it is in the buffer
    int offset = findFirst(firstChar);
    if(offset == -1) {
        appendChar(firstChar);
        commitLiteral(firstChar);
        return 0;
    }
    // read in another char
    char current = fgetc(input);
    if(current == -1) {
        appendChar(firstChar);
        commitLiteral(firstChar);
        return -1;
    }
    int length = 1;
    // check if the next place in the buffer is the same character
    offset = findExtension(current, offset, length);
    if(offset == -1) {
        ungetc(current, input);
        appendChar(firstChar);
        commitLiteral(firstChar);
        return 0;
    }
    length++;
    // keep reading in chars
    while(1) {
        current = fgetc(input);
        if(current == -1) {
            addTokenToBuffer(offset, length);
            // then add the offset and length to the output file
            commitToken(offset, length);
            return -1;
        }
        int nextOffset = findExtension(current, offset, length);
        if(nextOffset == -1 || length >= 64) {
            // restore state for next round
            ungetc(current, input);
            addTokenToBuffer(offset, length);
            commitToken(offset, length);
            return 0;
        }
        offset = nextOffset;
        length++;
    }
}

int main(int argv, char** argc) {
    input = fopen("input.txt", "r");
    if(input == NULL) {
        printf("Missing file input.txt\n");
        return 1;
    }

    output = fopen("compressed.out", "w");

    while(addToken() != -1) {}

    fclose(input);
    fclose(output);
}
compressed.out data
1
cg: couldn't decode file contents
decompress.c ASCII text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <stdio.h>

#define BUFFER_SIZE 512

FILE *input = NULL;
char buffer[BUFFER_SIZE];
int bufferFill = 0, start = 0;

void appendChar(char c) {
    putchar(c);
    if(bufferFill < BUFFER_SIZE) {
        buffer[bufferFill] = c;
        bufferFill++;
        return;
    }
    buffer[start % BUFFER_SIZE] = c;
    start = (start + 1) % BUFFER_SIZE;
}

int addTokenToBuffer(int offset, int length) {
    int startStart = start;
    for(int i = 0; i < length; i++) {
        appendChar(buffer[(offset + i + startStart) % bufferFill]);
    }
}

int nom() {
    char current = fgetc(input);
    // could this have happened if this was written in rust?
    if(current == -1) {
        return -1;
    }
    if(current & 0x80) {
        char secondByte = fgetc(input);
        int offset = ((current & 1) << 8) + (secondByte & 0xff);
        int length = ((current >> 1) & 0x3f) + 2;
        addTokenToBuffer(offset, length);
        return 0;
    }
    appendChar(current);
    return 0;
}

int main(int argv, char** argc) {
    input = fopen("compressed.out", "r");
    if(input == NULL) {
        printf("Missing file compressed.out\n");
        return 1;
    }

    while(nom() != -1) {}

    fclose(input);
}

entry #5

written by haru~
submitted at
1 like

guesses
comments 0

post a comment


main.py ASCII text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
a = """I am Sam. I am Sam. Sam I am.

That Sam-I-am! That Sam-I-am! I do not like that Sam-I-am!

Would you like green eggs and ham?

I do not like them, Sam-I-am.
I do not like green eggs and ham.

Would you like them here or there?

I would not like them here or there.
I would not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you like them in a house?
Would you like them with a mouse?

I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you eat them in a box?
Would you eat them with a fox?

Not in a box. Not with a fox.
Not in a house. Not with a mouse.
I would not eat them here or there.
I would not eat them anywhere.
I would not eat green eggs and ham.
I do not like them, Sam-I-am.

Would you? Could you? In a car?
Eat them! Eat them! Here they are.

I would not, could not, in a car.

You may like them. You will see.
You may like them in a tree!

I would not, could not in a tree.
Not in a car! You let me be.
I do not like them in a box.
I do not like them with a fox.
I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

A train! A train! A train! A train!
Could you, would you on a train?

Not on train! Not in a tree!
Not in a car! Sam! Let me be!
I would not, could not, in a box.
I would not, could not, with a fox.
I will not eat them in a house.
I will not eat them here or there.
I will not eat them anywhere.
I do not eat green eggs and ham.
I do not like them, Sam-I-am.

Say! In the dark? Here in the dark!
Would you, could you, in the dark?

I would not, could not, in the dark.

Would you could you in the rain?

I would not, could not in the rain.
Not in the dark. Not on a train.
Not in a car. Not in a tree.
I do not like them, Sam, you see.
Not in a house. Not in a box.
Not with a mouse. Not with a fox.
I will not eat them here or there.
I do not like them anywhere!

You do not like green eggs and ham?

I do not like them, Sam-I-am.

Could you, would you, with a goat?

I would not, could not with a goat!

Would you, could you, on a boat?

I could not, would not, on a boat.
I will not, will not, with a goat.
I will not eat them in the rain.
Not in the dark! Not in a tree!
Not in a car! You let me be!
I do not like them in a box.
I do not like them with a fox.
I will not eat them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere!
I do not like green eggs and ham!
I do not like them, Sam-I-am.

You do not like them. So you say.
Try them! Try them! And you may.
Try them and you may, I say.

Sam! If you let me be,
I will try them. You will see.

(... And he tries them ...)

Say! I like green eggs and ham!
I do! I like them, Sam-I-am!
And I would eat them in a boat.
And I would eat them with a goat...
And I will eat them, in the rain.
And in the dark. And on a train.
And in a car. And in a tree.
They are so good, so good, you see!
So I will eat them in a box.
And I will eat them with a fox.
And I will eat them in a house.
And I will eat them with a mouse.
And I will eat them here and there.
Say! I will eat them anywhere!
I do so like green eggs and ham!
Thank you! Thank you, Sam-I-am."""
b = a.split("them")
c = [ord(ch) for s in b for ch in s][::-1]
d = {ch%16 for ch in c}
e = [[chr(max(ord(bch), dch)) for dch in d for bch in bs] for bs in b]
f = ["".join(es) for es in e]
print(*f, sep="them")

entry #6

written by Makefile_dot_in
submitted at
0 likes

guesses
comments 0

post a comment


program ASCII text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/bin/tail -n+3
boring ahh task
I am Sam. I am Sam. Sam I am.

That Sam-I-am! That Sam-I-am! I do not like that Sam-I-am!

Would you like green eggs and ham?

I do not like them, Sam-I-am.
I do not like green eggs and ham.

Would you like them here or there?

I would not like them here or there.
I would not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you like them in a house?
Would you like then with a mouse?

I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

Would you eat them in a box?
Would you eat them with a fox?

Not in a box. Not with a fox.
Not in a house. Not with a mouse.
I would not eat them here or there.
I would not eat them anywhere.
I would not eat green eggs and ham.
I do not like them, Sam-I-am.

Would you? Could you? In a car?
Eat them! Eat them! Here they are.

I would not, could not, in a car.

You may like them. You will see.
You may like them in a tree!

I would not, could not in a tree.
Not in a car! You let me be.
I do not like them in a box.
I do not like them with a fox.
I do not like them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere.
I do not like green eggs and ham.
I do not like them, Sam-I-am.

A train! A train! A train! A train!
Could you, would you on a train?

Not on train! Not in a tree!
Not in a car! Sam! Let me be!
I would not, could not, in a box.
I would not, could not, with a fox.
I will not eat them in a house.
I will not eat them here or there.
I will not eat them anywhere.
I do not eat green eggs and ham.
I do not like them, Sam-I-am.

Say! In the dark? Here in the dark!
Would you, could you, in the dark?

I would not, could not, in the dark.

Would you could you in the rain?

I would not, could not in the rain.
Not in the dark. Not on a train.
Not in a car. Not in a tree.
I do not like them, Sam, you see.
Not in a house. Not in a box.
Not with a mouse. Not with a fox.
I will not eat them here or there.
I do not like them anywhere!

You do not like green eggs and ham?

I do not like them, Sam-I-am.

Could you, would you, with a goat?

I would not, could not with a goat!

Would you, could you, on a boat?

I could not, would not, on a boat.
I will not, will not, with a goat.
I will not eat them in the rain.
Not in the dark! Not in a tree!
Not in a car! You let me be!
I do not like them in a box.
I do not like them with a fox.
I will not eat them in a house.
I do not like them with a mouse.
I do not like them here or there.
I do not like them anywhere!
I do not like green eggs and ham!
I do not like them, Sam-I-am.

You do not like them. So you say.
Try them! Try them! And you may.
Try them and you may, I say.

Sam! If you let me be,
I will try them. You will see.

(... And he tries them ...)

Say! I like green eggs and ham!
I do! I like them, Sam-I-am!
And I would eat them in a boat.
And I would eat them with a goat...
And I will eat them, in the rain.
And in the dark. And on a train.
And in a car. And in a tree.
They are so good, so good, you see!
So I will eat them in a box.
And I will eat them with a fox.
And I will eat them in a house.
And I will eat them with a mouse.
And I will eat them here and there.
Say! I will eat them anywhere!
I do so like green eggs and ham!
Thank you! Thank you, Sam-I-am.

entry #7

written by oleander
submitted at
0 likes

guesses
comments 0

post a comment


ADC90.lat Unicode text, UTF-8 text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
huevosVerdesConJamon = "Yo soy Juan. Yo soy Juan. Yo soy Juan Ramón.

¡Ese Juan Ramón! ¡Ese Juan Ramón! ¡No me gusta nada de ese Juan Ramón!

¿Te gustan los huevos verdes con jamón?

No, no me gustan nada, Juan Ramón.
No, no me gustan nada los huevos verdes con jamón.

¿Te gustarían aquí o los quieres allá?

No, no me gustarían, no los quiero aquí ni allá.
No, no me gustarían aquí, allá o más allá.
Pues no me gustan nada los huevos verdes con jamón.
No, no me gustan nada, Juan Ramón.

¿Te gustarían en un caserón?
¿Te gustarían con un ratón?

No, no me gustarían en un caserón.
No, no me gustarían con un ratón.
No, no me gustarían aquí, allá o más allá.
Pues no me gustan nada los huevos verdes con jamón.
No, no me gustan nada, Juan Ramón.

¿Los comerías en un cajón con un zorro en un rincón?

No los quiero en un cajón con un zorro en un rincón.
Tampoco en un caserón y menos con un ratón.
No los como aquí ni allá, aquí, allá o más allá.
No como huevos verdes con jamón.
Pues, no me gustan nada, Juan Ramón.

¿Podrías? ¿Los querrías en un coche?
¡Cómelos que se enfrían esta noche!

No los comería, ni querría, en un coche.

Te gustarán más en un árbol, quizás.
¡Te gustarán más, ya verás!

¡Déjame ya! No los quiero en un árbol, ¡basta ya!
No los quiero en un coche, ¡no de noche!
No los quiero en un cajón con un zorro en un rincón.
Tampoco en un caserón y menos con un ratón.
No los como aquí ni allá, aquí, allá o más allá.
No como huevos verdes con jamón.
Pues no me gustan nada, Juan Ramón.

¡Un tren! ¡Un tren! ¡Un tren! ¡Un tren!
¿Puedes, quieres en un tren?

¡Déjame ya! No los quiero en un tren, ¡basta ya!
No en el árbol, ni en un coche, ni de noche.
No los quiero en un cajón con un zorro en un rincón.
No como con un ratón, tampoco en un caserón.
No los como aquí ni allá, aquí, allá o más allá.
No como huevos verdes con jamón.
Pues no me gustan nada, Juan Ramón.

Dime...¿Y en el túnel? ¡Aquí en el túnel!
¿Podrías, querrías, en el túnel?

No podría, ni querría en el túnel.

¿Podrías, querrías en la tormenta?

No los quiero en la tormenta, no me tientan.
Ni en el túnel ni en el tren me sientan bien.
Ni en un árbol, ni en un coche, no me gustan, ni de noche.
Ni en un cajón o un caserón, con un zorro o un ratón.
No los como aquí ni allá.
¡No me gustan, Juan Ramón!

¿No te gustan los huevos verdes con jamón?

No, no me gustan nada, Juan Ramón.

¿Podrías comerlos con una cabra?

No podría, ¡palabra! comerlos con una cabra.

¿Podrías, querrías en un barco?

No los como en un barco, ni navegando en un charco.
Con la cabra y en el túnel, no los como.
En la tormenta o en el tren, ni por asomo.
Ni en el árbol, ni en un coche, ni de noche.
No los quiero en un cajón con un zorro en un rincón.
Tampoco en un caserón y menos con un ratón.
¡Basta ya! No los como aquí ni allá, aquí, allá o más allá.
¡No, no me gustan en ninguna ocasión, los huevos verdes con jamón!
¡No, no me gustan nada, Juan Ramón!

No te gustan...¡qué ridiculez!
¡Pruébalos una vez!
Y te gustarán, tal vez,
-ya me lo dirás después-
Si los pruebas una vez.

¡Juan! Si me dejas en paz los probaré, ya verás.

(... Y él los prueba ...)

¡Vaya! ¡Me gustan los huevos verdes con jamón!
¡Si, me gustan mucho, Juan Ramón!
Y los comería en un barco navegando en un charco,
Y los comería con la cabra, te doy mi palabra...
Los comeré en la tormenta.
También me tientan en el túnel y en el tren.
¡Y en un árbol y en un coche y de noche!
¡Qué ricos son, qué ricos son los huevos verdes con jamón!
Los comeré en un cajón con un zorro en un rincón.
Los quiero en un caserón y también con un ratón.
¡Comeré aquí y allá, aquí, allá o más allá, huevos verdes con jamón!
¡Me gustan mucho, mucho, mucho, los huevos verdes con jamón!
¡Gracias, gracias, Juan Ramón!"

escribir(huevosVerdesConJamon)

entry #8

written by kimapr
submitted at
0 likes

guesses
comments 0

post a comment


entry.phar a php script executable (binary data)
1
cg: couldn't decode file contents