← All Duels

gpt-5.4-mini_vs_deepseek-v3.2-thinking.jsonl — 10 puzzles

gpt-5.4-mini
-1
vs
deepseek-v3.2-thinking
-3
#1 Solver Failed
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 5:
        return False

    total = 0
    spin = 1
    twist = 0

    for i, ch in enumerate(s, 1):
        code = ord(ch)
        total = (total + (code ^ (i * 17)) * (i + 3)) % 1_000_003
        spin = (spin * (code + i * 5)) % 1_000_003

    for i, ch in enumerate(reversed(s), 1):
        twist = (twist * 131 + (ord(ch) ^ (i * 29))) % 1_000_003

    return (
        sum(ord(ch) for ch in s[::-1]) % 17 == 12
        and ((total ^ spin ^ twist) % 1_000_003 == 653998)
    )
73737
"Qz7!_"
Proposer: gpt-5.4-mini Solver: deepseek-v3.2-thinking
1 vs 0
#2 Sample Solution Wrong
def mystery(x):
    s = str(x)
    if len(s) != 12:
        return False

    a = 0
    for i, ch in enumerate(s):
        a = (a + ord(ch) * (i + 1)) % 1000000007
    if a != 6325:
        return False

    b = 1
    for i, ch in enumerate(s):
        val = ord(ch) ^ (i + 1)
        b = (b * val) % 1000000009
    if b != 162350029:
        return False

    c = 0
    for ch in s:
        c = (c * 31 + ord(ch)) & 0xFFFFFFFF
    if c != 1703461067:
        return False

    d = 0
    for i, ch in enumerate(s):
        o = ord(ch)
        rot = ((o << (i % 16)) & 0xFFFF) | ((o >> (16 - (i % 16))) & 0xFFFF)
        d ^= rot
    if d != 10150:
        return False

    e = sum(ord(ch) ** 2 for ch in s) % 1234567
    if e != 93737:
        return False

    return True
"xQ7tP4vR9sW2"
Proposer: deepseek-v3.2-thinking Solver: gpt-5.4-mini
1 vs -1
#3 Solver Failed
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 6:
        return False

    a = 0
    for i, ch in enumerate(s):
        a = (a * 31 + ord(ch) + i) % 10007
    if a != 2588:
        return False

    b = 0
    for i, ch in enumerate(s):
        b = (b * 17 + (ord(ch) ^ (i * 9))) % 10009
    if b != 5311:
        return False

    c = 0
    for i, ch in enumerate(s):
        c = (c * 19 + ord(ch) * (i + 7)) % 12289
    if c != 9063:
        return False

    d = 0
    for i, ch in enumerate(s):
        d ^= ord(ch) << (i % 5)
    if d != 1587:
        return False

    return True
"Z3r0lE"
"Q7!mZ@"
Proposer: gpt-5.4-mini Solver: deepseek-v3.2-thinking
2 vs -1
#4 Solver Failed
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 8:
        return False

    # Constraint A: weighted sum of ords
    a = 0
    for i, ch in enumerate(s):
        a = (a + ord(ch) * ((i + 1) * (i + 1))) % 1000000007
    if a != 15651:
        return False

    # Constraint B: product of (ord XOR (i*13))
    b = 1
    for i, ch in enumerate(s):
        b = (b * (ord(ch) ^ (i * 13))) % 1000000009
    if b != 392658774:
        return False

    # Constraint C: rolling hash with 31 (32-bit mask)
    c = 0
    for ch in s:
        c = (c * 31 + ord(ch)) & 0xFFFFFFFF
    if c != 1010617678:
        return False

    # Constraint D: XOR of rotated 16-bit ord values
    d = 0
    for i, ch in enumerate(s):
        o = ord(ch)
        rot = ((o << (i % 16)) & 0xFFFF) | ((o >> (16 - (i % 16))) & 0xFFFF)
        d ^= rot
    if d != 7765:
        return False

    # Constraint E: sum of squares modulo 1234567
    e = sum(ord(ch) ** 2 for ch in s) % 1234567
    if e != 68748:
        return False

    # Constraint F: reverse polynomial hash with 37 modulo 1000003
    f = 0
    for ch in reversed(s):
        f = (f * 37 + ord(ch)) % 1000003
    if f != 68276:
        return False

    return True
"}si5_UKA"
"Secret42"
Proposer: deepseek-v3.2-thinking Solver: gpt-5.4-mini
2 vs 0
#5 Sample Solution Wrong
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 8:
        return False
    if any(ord(ch) < 33 or ord(ch) > 126 for ch in s):
        return False

    lin = sum((i + 1) * ord(ch) for i, ch in enumerate(s))
    if lin != 2601:
        return False

    perm = [3, 1, 7, 0, 5, 2, 6, 4]
    weights = [11, 13, 17, 19, 23, 29, 31, 37]
    rev = 0
    for w, idx in zip(weights, perm):
        rev += w * ord(s[idx])
    if rev != 12602:
        return False

    rx = 0
    for i, ch in enumerate(s):
        v = ord(ch) & 0xFF
        r = i & 7
        rot = ((v << r) | (v >> (8 - r))) & 0xFF if r else v
        rx ^= rot
    if rx != 102:
        return False

    h1 = 0
    for ch in s:
        h1 = (h1 * 31 + ord(ch)) % 10007
    if h1 != 9676:
        return False

    h2 = 0
    for ch in s:
        h2 = (h2 * 17 + ord(ch)) % 10009
    if h2 != 5333:
        return False

    p = 0
    for i in range(0, 8, 2):
        p = (p * 131 + (((ord(s[i]) << 1) & 0xFF) ^ ord(s[i + 1]))) % 1000003
    if p != 468104:
        return False

    sq = sum(ord(ch) * ord(ch) for ch in s) % 1234567
    if sq != 50932:
        return False

    return True
"t9@Q2m!Z"
Proposer: gpt-5.4-mini Solver: deepseek-v3.2-thinking
1 vs 0
#6 Sample Solution Wrong
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 9:
        return False
    # Constraint A: sum of squares modulo 1000003
    a = sum(ord(ch) ** 2 for ch in s) % 1000003
    if a != 47864:
        return False
    # Constraint B: alternating XOR and sum, result masked to 16 bits
    b = 0
    for i, ch in enumerate(s):
        if i % 2 == 0:
            b ^= ord(ch)
        else:
            b += ord(ch)
    b &= 0xFFFF
    if b != 430:
        return False
    # Constraint C: polynomial hash with base 257 modulo 2^24
    c = 0
    for ch in s:
        c = (c * 257 + ord(ch)) & 0xFFFFFF
    if c != 4038336:
        return False
    # Constraint D: product of (ord(ch) + i*7) modulo 1000000007
    d = 1
    for i, ch in enumerate(s):
        d = (d * (ord(ch) + i * 7)) % 1000000007
    if d != 226138685:
        return False
    # Constraint E: product of ords modulo 10007
    e = 1
    for ch in s:
        e = (e * ord(ch)) % 10007
    if e != 6855:
        return False
    return True
"PUZZLE123"
Proposer: deepseek-v3.2-thinking Solver: gpt-5.4-mini
1 vs -1
#7 Sample Solution Wrong
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 9 or not s.isdigit() or s[0] == "0":
        return False

    vals = [ord(ch) - 48 for ch in s]

    a = 0
    for i, v in enumerate(vals):
        a = (a * 19 + (v + 7) * (i + 3)) % 1009
    if a != 170:
        return False

    b = 0
    for ch in s:
        b = (b * 31 + ord(ch)) % 65521
    if b != 42329:
        return False

    c = 0
    for i, v in enumerate(vals):
        c = ((c << 1) ^ (v + 13 * i)) & 0xFFFF
    if c != 3676:
        return False

    d = 1
    for i, v in enumerate(vals):
        d = (d * (v + i + 1)) % 1000003
    if d != 80597:
        return False

    e = sum(v * v for v in vals)
    if e != 204:
        return False

    f = 0
    for v in reversed(vals):
        f = (f * 17 + v) % 10007
    if f != 7441:
        return False

    g = 0
    for w, idx in zip([3, 5, 7, 11, 13, 17, 19, 23, 29], [3, 1, 7, 0, 8, 5, 2, 6, 4]):
        g += w * vals[idx]
    if g != 554:
        return False

    return True
507318642
Proposer: gpt-5.4-mini Solver: deepseek-v3.2-thinking
0 vs -1
#8 Sample Solution Wrong
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 7:
        return False
    if any(ord(ch) < 33 or ord(ch) > 126 for ch in s):
        return False

    a = 0
    for i, ch in enumerate(s):
        a = (a + ord(ch) * ((i + 1) ** 2)) % 1000003
    if a != 11551:
        return False

    b = 1
    for i, ch in enumerate(s):
        b = (b * (ord(ch) ^ (i * 13))) % 1000000009
    if b != 327831149:
        return False

    c = 0
    for ch in s:
        c = (c * 257 + ord(ch)) & 0xFFFFFF
    if c != 14260139:
        return False

    d = 0
    for i, ch in enumerate(s):
        v = ord(ch)
        r = i % 8
        if r == 0:
            rot = v
        else:
            rot = ((v << r) & 0xFF) | ((v >> (8 - r)) & 0xFF)
        d ^= rot
    if d != 162:
        return False

    e = sum(ord(ch) ** 2 for ch in s) % 10007
    if e != 2762:
        return False

    f = 0
    for ch in reversed(s):
        f = (f * 17 + ord(ch)) % 1000003
    if f != 599468:
        return False

    return True
"Puzzle!"
Proposer: deepseek-v3.2-thinking Solver: gpt-5.4-mini
0 vs -2
#9 Sample Solution Wrong
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 8 or any(ord(ch) < 33 or ord(ch) > 126 for ch in s):
        return False

    a = 0
    for ch in s:
        a = (a * 31 + ord(ch)) % 10007
    if a != 427:
        return False

    b = 0
    for ch in reversed(s):
        b = (b * 17 + ord(ch)) % 10009
    if b != 3204:
        return False

    c = 0
    for i, ch in enumerate(s):
        c ^= ord(ch) << (i % 5)
    if c != 2014:
        return False

    d = 0
    for i, ch in enumerate(s, 1):
        d += (i * i) * ord(ch)
    if d != 15695:
        return False

    e = sum(ord(ch) * ord(ch) for ch in s)
    if e != 48406:
        return False

    p = 0
    for i in range(0, 8, 2):
        p = (p * 131 + (((ord(s[i]) << 1) & 0xFF) ^ ord(s[i + 1]))) % 1000003
    if p != 727562:
        return False

    return True
"Q7!mZ3#v"
Proposer: gpt-5.4-mini Solver: deepseek-v3.2-thinking
-1 vs -2
#10 Sample Solution Wrong
def mystery(x):
    s = x if isinstance(x, str) else str(x)
    if len(s) != 8 or not s.isdigit() or s[0] == '0':
        return False
    
    vals = [int(ch) for ch in s]
    ords = [ord(ch) for ch in s]
    
    # Constraint A: weighted sum of digits modulo 10007
    a = 0
    for i, v in enumerate(vals):
        a = (a + v * ((i + 1) ** 2)) % 10007
    if a != 662:
        return False
    
    # Constraint B: product of (ord XOR (i*13)) modulo 1000000007
    b = 1
    for i, o in enumerate(ords):
        b = (b * (o ^ (i * 13))) % 1000000007
    if b != 92050584:
        return False
    
    # Constraint C: polynomial hash of ords with base 31 modulo 65536
    c = 0
    for o in ords:
        c = (c * 31 + o) % 65536
    if c != 43105:
        return False
    
    # Constraint D: XOR of rotated 8-bit ord values (rotate left by i%8 bits)
    d = 0
    for i, o in enumerate(ords):
        if (i % 8) == 0:
            rot = o
        else:
            rot = ((o << (i % 8)) & 0xFF) | ((o >> (8 - (i % 8))) & 0xFF)
        d ^= rot
    if d != 248:
        return False
    
    # Constraint E: sum of squares of digits modulo 1009
    e = sum(v * v for v in vals) % 1009
    if e != 235:
        return False
    
    # Constraint F: reverse weighted sum with permutation and weights
    perm = [3, 1, 7, 0, 5, 2, 6, 4]
    weights = [11, 13, 17, 19, 23, 29, 31, 37]
    f = 0
    for w, idx in zip(weights, perm):
        f += w * vals[idx]
    if f != 941:
        return False
    
    # Constraint G: alternating XOR and sum of ords, masked to 16 bits
    g = 0
    for i, o in enumerate(ords):
        if i % 2 == 0:
            g ^= o
        else:
            g += o
    g &= 0xFFFF
    if g != 265:
        return False
    
    return True
"84629530"
Proposer: deepseek-v3.2-thinking Solver: gpt-5.4-mini
-1 vs -3