This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Game | Round | IsSwiss | User1 | Score1 | Status1 | User2 | Score2 | Status2 | Moves | |
---|---|---|---|---|---|---|---|---|---|---|
313589 | 1 | swiss | Jelle van der Drift | 0 | ILLEGAL | Marc Oldenhof | 21 | WIN | WADADAADDAFNAFAA addaaffadadaanwa a2c4 g4e2 c4e2 h8f6 | |
313590 | 1 | swiss | Marc Oldenhof | 21 | WIN | Jelle van der Drift | 1 | LOSE | AWNAADADAFFAADDA adaanaafwdaafdad b6d6 g5f3 b5d3 h3f5 a8c8 f5d3 c8a8 ad1 a7c5 d1b3 b2c1 fe2 b1d3 e2d3 Af8 h8f8 a3b1 ae3 c5a3 e3c1 a6c6 af4 d6d4 f3d4 b1d2 f4d2 b8d6 nd8 d6f8 fb1 a2b2 d8b7 Df1 b7c5 f1h1 | |
313591 | 1 | swiss | Test Player A | 11 | DRAW | Kirk Brown | 11 | DRAW | AAAFDDDAADAANWAF afanaaddaafdadaw a2c4 g3e5 b3d5 h4f4 a3c1 h6h4 d5f7 g5e7 b1d3 g2f3 b2d2 e5c3 b6c6 c3e1 f7h5 g4h6 a5a3 f4d4 Ae2 f3e2 d2d4 ab2 c6c7 g6e4 c1e3 e2d1 b5d6 e7c5 Df2 e1g3 d3b1 e4c6 a1c3 d1e2 d4f4 g3e5 c7c8 g8e8 f4d4 e2d1 d4d2 h6g8 c3a1 h7f5 a7c7 g8e7 d2b2 h2f4 Ae2 e8e6 c7c5 h3g4 Ag8 e5c3 d6f7 h1f3 f7e5 c3e5 b4d6 nb3 b8a7 f3h1 f2h2 h8h7 d6b4 e7g6 c4a2 g6h8 e3g1 c6a4 a2c4 fg6 Ae8 g6h5 a8c6 ae1 h2f2 g7g5 e2g4 b3a1 Fh2 ac3 c8d8 h7g7 a7b6 g5g3 b4d2 h5g6 g8e6 d1e2 Dh7 f5h7 e6g8 g6f7 g8e6 h4h6 c6a8 f4h2 b6c7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Generates zip files that trigger quadratic runtime in unzip with zip bomb | |
# detection enabled. | |
import zlib | |
from random import shuffle, randrange | |
from struct import pack | |
def MakeBytes(data): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdint> | |
#include <vector> | |
constexpr int64_t min_k = 12; // 2^12 = 4096 | |
constexpr int64_t max_k = 1e10; // 2^(10^10) | |
static int64_t FindCounterexample(size_t digit_count) { | |
std::vector<char> digits(digit_count); | |
digits[0] = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
static uint8_t random_data[240]; | |
static size_t random_size = 0; | |
uint8_t GetRandomByte() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
494106250 | |
494112500 | |
494281250 | |
494287500 | |
494456250 | |
494631250 | |
494806250 | |
494975000 | |
494981250 | |
495150000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Almost-correct solution | |
from functools import cmp_to_key | |
import sys | |
order = dict() | |
sort_key = cmp_to_key(lambda p, q: order.get((p, q), 0)) | |
for line in sys.stdin: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/d8 --single-threaded | |
// d8 defines print() and printErr() which write to stdout and stderr. | |
// In Node.js, we can use console.log() and console.error() for this. | |
const print = globalThis.print || console.log; | |
const printErr = globalThis.printErr || console.error; | |
// Global player initialization | |
let myColor = undefined; | |
let firstMove = undefined; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/d8 --single-threaded | |
// Voor Caia: | |
// 'D' voor een deterministische speler | |
// 'R' voor een nondeterministische speler | |
printErr('D', 'voorbeeldspeler'); | |
const mijnKleur = Number(readline()); | |
printErr('Mijn kleur:', mijnKleur); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \file MinimaxCPU.js | |
* | |
* \section LICENSE | |
* | |
* Copyright (C) 2024 Maks Verver | |
* | |
* This file is part of StackAndConquer. | |
* | |
* StackAndConquer is free software: you can redistribute it and/or modify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import io | |
import libxml2 | |
import xml.sax.xmlreader | |
from drv_libxml2 import LibXml2Reader | |
def parse_binary(): | |
source = xml.sax.xmlreader.InputSource() | |
source.setByteStream(io.BytesIO(b'<?xml version="1.0" encoding="UTF-8"?>\n<root />\n')) |
NewerOlder