all stats

BeatButton's stats

guessed the most

namecorrect guessesgames togetherratio
Palaiologos140.250
Olivia150.200
LyricLy040.000
IFcoltransG040.000
Olive040.000
razetime040.000
quintopia040.000

were guessed the most by

namecorrect guessesgames togetherratio
LyricLy260.333
Olivia260.333
Palaiologos140.250
Olive140.250
razetime150.200
IFcoltransG040.000
quintopia040.000

entries

round #24

submitted at
2 likes

guesses
comments 0

post a comment


entry.py ASCII text
1
2
3
4
5
6
7
8
9
Entry = type(
    'Entry',
    (),
    dict(
        __init__=lambda self: (setattr(self, 'entries', list()), setattr(self, 'keys', dict())) and None,
        get=lambda self, key, default=None: self.entries.__getitem__(self.keys.__getitem__(key)) if key in self.keys else default,
        insert=lambda self, key, value: (lambda: self.entries.__setitem__(self.keys[key], value), lambda: (self.keys.__setitem__(key, len(self.entries)), self.entries.append(value)) and None)[0 if key in self.keys else 1](),
    ),
)

round #17

submitted at
2 likes

guesses
comments 0

post a comment


okaygoogle.rs 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
const PRIMES: &[u8] = include_bytes!("primes.32b"); // http://www.umopit.ru/CompLab/primes32.htm
const NUM_PRIMES: usize = PRIMES.len() / 4;
const LAST: u32 = prime_at(NUM_PRIMES - 1);

const fn prime_at(index: usize) -> u32 {
    u32::from_le_bytes([
        PRIMES[index * 4],
        PRIMES[index * 4 + 1],
        PRIMES[index * 4 + 2],
        PRIMES[index * 4 + 3],
    ])
}

pub fn entry(num: u32) -> bool {
    if num < 2 {
        false
    } else if num == 2 {
        true
    } else if num > LAST {
        false
    } else {
        let mut lo = 0;
        let mut hi = NUM_PRIMES - 1;
        let mut isp = false;
        while lo <= hi {
            let guess = lo + (hi - lo) / 2;
            let p = prime_at(guess);
            use std::cmp::Ordering::*;
            match num.cmp(&p) {
                Equal => {
                    isp = true;
                    break;
                }
                Less => hi = guess - 1,
                Greater => lo = guess + 1,
            }
        }
        isp
    }
}

round #13

submitted at
impersonating Olivia
6 likes

guesses
comments 0

post a comment


frainbuck.rs 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
#[cfg(not(all(target_os = "macos", target_arch = "mips", target_vendor = "pc")))]
fn main() {
    eprintln!("free yourself from your fractured reality");
    ::std::process::exit(49);
}

const _APPARITION: &str = include_str!(concat!("../", file!()));
/*
              __,aaPPPPPPPPaa,__                               __,aaPPPPPPPPaa,__
          ,adP"""'          `""Yb,_                         _,bY""`          '"""Pda,
       ,adP'                     `"Yb,                   ,bY"`                     'Pda,
     ,dP'     ,aadPP"""""YYba,_     `"Y,               ,Y"`     _,abYY"""""PPdaa,     'Pd,
    ,P'    ,aP"'            `""Ya,     "Y,           ,Y"     ,aY""`            '"Pa,    'P,
   ,P'    aP'     _________     `"Ya    `Yb,       ,bY`    aY"`     _________     'Pa    'P,
  ,P'    d"    ,adP""""""""Yba,    `Y,    "Y,     ,Y"    ,Y`    ,abY""""""""Pda,    "d    'P,
 ,d'   ,d'   ,dP"            `Yb,   `Y,    `Y,   ,Y`    ,Y`   ,bY`            "Pd,   'd,   'd,
 d'   ,d'   ,d'    ,dP""Yb,    `Y,   `Y,    `b   b`    ,Y`   ,Y`    ,bY""Pd,    'd,   'd,   'd
 8    d'    d'   ,d"      "b,   `Y,   `8,    Y, ,Y    ,8`   ,Y`   ,b"      "d,   'd    'd    8
 8    8     8    d'    _   `Y,   `8    `8    `b b`    8`    8`   ,Y`   _    'd    8     8    8
 8    8     8    8     8    `8    8     8     8 8     8     8    8`    8     8    8     8    8
 8    Y,    Y,   `b, ,aP     P    8    ,P     8 8     P,    8    P     Pa, ,b`   ,Y    ,Y    8
 I,   `Y,   `Ya    """"     d'   ,P    d"    ,P P,    "d    P,   'd     """"    aY`   ,Y`   ,I
 `Y,   `8,    `Ya         ,8"   ,P'   ,P'    d' 'd    'P,   'P,   "8,         aY`    ,8`   ,Y`
  `Y,   `Ya,    `Ya,,__,,d"'   ,P'   ,P"    ,P   P,    "P,   'P,   '"d,,__,,aY`    ,aY`   ,Y`
   `Y,    `Ya,     `""""'     ,P'   ,d"    ,P'   'P,    "d,   'P,     '""""`     ,aY`    ,Y`
    `Yb,    `"Ya,_          ,d"    ,P'    ,P'     'P,    'P,    "d,          _,aY"`    ,bY`
      `Yb,      ""YbaaaaaadP"     ,P'    ,P'       'P,    'P,     "PdaaaaaabY""      ,bY`
        `Yba,                   ,d'    ,dP'         'Pd,    'd,                   ,abY`
           `"Yba,__       __,adP"     dP"             "Pd     "Pda,__       __,abY"`
               `"""""""""""""'                                   '"""""""""""""`
              __,aaPPPPPPPPaa,__                               __,aaPPPPPPPPaa,__
          ,adP"""'          `""Yb,_                         _,bY""`          '"""Pda,
       ,adP'                     `"Yb,                   ,bY"`                     'Pda,
     ,dP'     ,aadPP"""""YYba,_     `"Y,               ,Y"`     _,abYY"""""PPdaa,     'Pd,
    ,P'    ,aP"'            `""Ya,     "Y,           ,Y"     ,aY""`            '"Pa,    'P,
   ,P'    aP'     _________     `"Ya    `Yb,       ,bY`    aY"`     _________     'Pa    'P,
  ,P'    d"    ,adP""""""""Yba,    `Y,    "Y,     ,Y"    ,Y`    ,abY""""""""Pda,    "d    'P,
 ,d'   ,d'   ,dP"            `Yb,   `Y,    `Y,   ,Y`    ,Y`   ,bY`            "Pd,   'd,   'd,
 d'   ,d'   ,d'    ,dP""Yb,    `Y,   `Y,    `b   b`    ,Y`   ,Y`    ,bY""Pd,    'd,   'd,   'd
 8    d'    d'   ,d"      "b,   `Y,   `8,    Y, ,Y    ,8`   ,Y`   ,b"      "d,   'd    'd    8
 8    8     8    d'    _   `Y,   `8    `8    `b b`    8`    8`   ,Y`   _    'd    8     8    8
 8    8     8    8     8    `8    8     8     8 8     8     8    8`    8     8    8     8    8
 8    Y,    Y,   `b, ,aP     P    8    ,P     8 8     P,    8    P     Pa, ,b`   ,Y    ,Y    8
 I,   `Y,   `Ya    """"     d'   ,P    d"    ,P P,    "d    P,   'd     """"    aY`   ,Y`   ,I
 `Y,   `8,    `Ya         ,8"   ,P'   ,P'    d' 'd    'P,   'P,   "8,         aY`    ,8`   ,Y`
  `Y,   `Ya,    `Ya,,__,,d"'   ,P'   ,P"    ,P   P,    "P,   'P,   '"d,,__,,aY`    ,aY`   ,Y`
   `Y,    `Ya,     `""""'     ,P'   ,d"    ,P'   'P,    "d,   'P,     '""""`     ,aY`    ,Y`
    `Yb,    `"Ya,_          ,d"    ,P'    ,P'     'P,    'P,    "d,          _,aY"`    ,bY`
      `Yb,      ""YbaaaaaadP"     ,P'    ,P'       'P,    'P,     "PdaaaaaabY""      ,bY`
        `Yba,                   ,d'    ,dP'         'Pd,    'd,                   ,abY`
           `"Yba,__       __,adP"     dP"             "Pd     "Pda,__       __,abY"`
               `"""""""""""""'                                   '"""""""""""""`
*/

#[cfg(all(target_os = "macos", target_arch = "mips", target_vendor = "pc"))]
#[no_std]
fn main() {
    unsafe {
        let myth: Vec<u8> = match ::std::env::args()
            .nth(1)
            .unwrap_or_else(|| {
                ::std::arch::asm!("ud2");
                unreachable!("\0")
            })
            .as_str()
        {
            "-c" => {
                let mut murmuring = vec![];
                ::std::io::Read::read_to_end(
                    &mut ::std::fs::File::open(::std::env::args().nth(2).unwrap_or_else(|| {
                        ::std::arch::asm!("ud2");
                        unreachable!("🌌")
                    }))
                    .unwrap_or_else(|_| {
                        ::std::arch::asm!("ud2");
                        unreachable!("💨")
                    }),
                    &mut murmuring,
                )
                .unwrap_or_else(|_| {
                    ::std::arch::asm!("ud2");
                    unreachable!("❄️")
                });
                if murmuring.contains(&46) {
                    murmuring.retain(|stanza| [43, 44, 45, 46, 60, 62, 91, 93].contains(stanza))
                } else {
                    murmuring.retain(|&platitude| platitude == 44)
                }
                ::std::io::Write::write_all(
                    &mut ::std::fs::File::create(::std::env::args().nth(3).unwrap_or_else(|| {
                        ::std::arch::asm!("ud2");
                        unreachable!("🪨")
                    }))
                    .unwrap_or_else(|_| {
                        ::std::arch::asm!("ud2");
                        unreachable!("📖")
                    }),
                    &murmuring,
                )
                .unwrap_or_else(|_| {
                    ::std::arch::asm!("ud2");
                    unreachable!("🌕")
                });
                ::std::process::exit(0);
            }
            "-r" => {
                let mut mnemonic = vec![];
                ::std::io::Read::read_to_end(
                    &mut ::std::fs::File::open(::std::env::args().nth(2).unwrap_or_else(|| {
                        ::std::arch::asm!("ud2");
                        unreachable!("🔥")
                    }))
                    .unwrap_or_else(|_| {
                        ::std::arch::asm!("ud2");
                        unreachable!("💧")
                    }),
                    &mut mnemonic,
                )
                .unwrap_or_else(|_| {
                    ::std::arch::asm!("ud2");
                    unreachable!("🕐")
                });

                mnemonic
            }
            _ => {
                ::std::arch::asm!("ud2");
                unreachable!("🌸")
            }
        };

        let mut pendulum = 0;
        let mut bond = 0;
        let mut daydream = vec![0; 88888];
        loop {
            match myth.get(pendulum) {
                Some(43) => {
                    daydream[bond] += 1;
                    pendulum += 1;
                }
                Some(44) => {
                    let mut universe = [0];
                    ::std::io::Read::read_exact(&mut ::std::io::stdin(), &mut universe)
                        .unwrap_or_else(|_| {
                            return;
                            ::std::arch::asm!("ud2");
                            unreachable!("⚡")
                        });
                    let [singularity] = universe;
                    daydream[bond] = singularity;
                    pendulum += 1;
                }
                Some(45) => {
                    daydream[bond] -= 1;
                    pendulum += 1;
                }
                Some(46) => {
                    ::std::io::Write::write_all(&mut ::std::io::stdout(), &[daydream[bond] as u8])
                        .unwrap_or_else(|_| {
                            ::std::arch::asm!("ud2");
                            unreachable!("🗝️")
                        });
                    pendulum += 1;
                }
                Some(60) => {
                    bond -= 1;
                    pendulum += 1;
                }
                Some(62) => {
                    bond += 1;
                    pendulum += 1;
                }
                Some(91) => {
                    if daydream[bond] == 0 {
                        let mut oracle = 0;
                        loop {
                            match myth[pendulum] {
                                91 => oracle += 1,
                                93 => {
                                    oracle -= 1;
                                    if oracle == 0 {
                                        break;
                                    }
                                }
                                _ => {}
                            }
                            pendulum += 1;
                        }
                    } else {
                        pendulum += 1;
                    }
                }
                Some(93) => {
                    if daydream[bond] != 0 {
                        let mut sage = 0;
                        loop {
                            match myth[pendulum] {
                                93 => sage += 1,
                                91 => {
                                    sage -= 1;
                                    if sage == 0 {
                                        break;
                                    }
                                }
                                _ => {}
                            }
                            pendulum -= 1;
                        }
                    } else {
                        pendulum += 1;
                    }
                }
                Some(_) => pendulum += 1,
                None => break,
            }
        }
    }
}

round #12

guesses
comments 0

post a comment


8eaf3db6f25850557a0697981ec5435d.python2 ASCII text, with no line terminators
1
entry=eval

round #11

guesses
comments 0

post a comment


squish.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
#include <stdlib.h>

#define __SQUISH_INITSIZE 256

#define __SQUISH_INIT                                                 \
    if (len == 0)                                                     \
        return 0;                                                     \
    if (*result == NULL || *outlen < __SQUISH_INITSIZE)               \
    {                                                                 \
        *outlen = __SQUISH_INITSIZE;                                  \
        *result = realloc(*result, __SQUISH_INITSIZE * sizeof(char)); \
    }

#define __SQUISH_WRITE                                      \
    if (*outlen < j + 2)                                    \
    {                                                       \
        *outlen *= 2;                                       \
        *result = realloc(*result, *outlen * sizeof(char)); \
    }                                                       \
    (*result)[j++] = count;                                 \
    (*result)[j++] = last;

int compress(const char *data, size_t len, char **result, size_t *outlen)
{
    __SQUISH_INIT;
    char last = data[0];
    unsigned char count = 1;
    size_t j = 0;
    for (size_t i = 1; i < len; ++i)
    {
        char now = data[i];
        if (now != last || count == 255)
        {
            __SQUISH_WRITE;
            last = now;
            count = 1;
        }
        else
        {
            ++count;
        }
    }
    __SQUISH_WRITE;
    *outlen = j;
    *result = realloc(*result, *outlen * sizeof(char));
}

int decompress(const char *data, size_t len, char **result, size_t *outlen)
{
    __SQUISH_INIT;
    size_t j = 0;
    for (size_t i = 0; i < len; i += 2)
    {
        unsigned char len = data[i];
        char ch = data[i + 1];
        while (*outlen - j < len)
        {
            *outlen *= 2;
            *result = realloc(*result, *outlen * sizeof(char));
        }
        for (int k = j; k < j + len; ++k)
        {
            (*result)[k] = ch;
        }
        j += len;
    }
    *outlen = j;
    *result = realloc(*result, *outlen * sizeof(char));
}

round #10

guesses
comments 0

post a comment


quickmaths.html ASCII text