This file contains 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<vector> | |
using namespace std; | |
const int INF = 2e9; | |
struct node | |
{ | |
int left, right, add; | |
int max; | |
node * child_left, * child_right; | |
}; |
This file contains 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
import math | |
class Vector: | |
def __init__(self, x_, y_): | |
self.x = x_ | |
self.y = y_ | |
def __len__(self): |
This file contains 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
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 |
This file contains 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
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 |