Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <cstring>
#include <stack>
#define mem(a,v) memset(a,v,sizeof(a))
int w[100], d[100001], selected_card[100001];
int main() {
int weight, N;
std::cin >> weight >> N;
package ru.spbau.turaev.timus1521;
import java.util.Random;
import java.util.Scanner;
class Node {
Node(int x, long y, Node left, Node right) {
this.x = x;
this.y = y;

Keybase proof

I hereby claim:

  • I am marat-turaev on github.
  • I am marat (https://keybase.io/marat) on keybase.
  • I have a public key whose fingerprint is B916 EAD8 A8B7 710B C5C2 9D13 143C 2AC1 1007 B269

To claim this, I am signing this object: