Skip to content

Instantly share code, notes, and snippets.

use std::io;
use std::fs;
use std::str::FromStr;
use std::convert::TryInto;
use std::collections::HashMap;
#[derive(Debug, Clone)]
enum Instruction {
Mask(u64, u64, u64),
Set(u64, u64),
use std::io;
use regex::Regex;
use std::fs;
use std::str::FromStr;
use std::convert::Into;
use std::ops::RangeInclusive;
use std::collections::{HashMap, VecDeque};
type Ticket = Vec<u32>;
use std::collections::{HashMap, HashSet};
use std::convert::Into;
use std::fs;
use std::io;
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
struct Point {
d: [i64; 4],
}
use std::collections::{HashMap, HashSet};
use std::convert::Into;
use std::fs;
use std::io;
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
struct Point {
d: [i64; 4],
}
use std::fs;
use std::io;
use std::str::FromStr;
#[derive(Debug, Clone)]
enum Pattern {
Char {
c: u8,
},
And {
use std::fs;
use std::io;
use std::str::FromStr;
#[derive(Debug, Clone)]
enum Pattern {
Char {
c: u8,
},
And {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct Node {
int value;
struct Node *next;
} Node;
typedef struct Circle {