Skip to content

Instantly share code, notes, and snippets.

#include<iostream>
#include<vector>
using namespace std;
const int INF = 2e9;
struct node
{
int left, right, add;
int max;
node * child_left, * child_right;
};
import math
class Vector:
def __init__(self, x_, y_):
self.x = x_
self.y = y_
def __len__(self):
package com.template
import co.paralleluniverse.fibers.Suspendable
import com.template.schemas.UserSchema
import freemarker.cache.ClassTemplateLoader
import freemarker.template.Configuration
import net.corda.client.rpc.CordaRPCClient
import net.corda.core.contracts.*
import net.corda.core.flows.*
import net.corda.core.identity.CordaX500Name
import pygame
class Board:
def __init__(self, width, height):
self.width = width
self.height = height
self.board = [[0 for _ in range(width)] for _ in range(height)]
self.gray = []
self.player = None