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
\documentclass[legalpaper, 12pt, addpoints]{exam} | |
\usepackage[margin=1in]{geometry} | |
\usepackage[utf8]{inputenc} | |
\usepackage{graphics} | |
\usepackage{color} | |
\usepackage{amssymb} | |
\usepackage{amsmath} | |
\usepackage{enumitem} | |
\usepackage{xcolor} | |
\usepackage{cancel} |
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 <bits/stdc++.h> | |
using namespace std; | |
typedef long long int ll; | |
#define FOR(i,s,x) for(int i=s;i<(int)(x);i++) | |
#define REP(i,x) FOR(i,0,x) | |
#define ALL(c) c.begin(), c.end() | |
#define UNIQUE(c) sort(ALL(c)), c.erase(unique(ALL(c)), c.end()) | |
const int INF = INT_MAX; |
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 <cmath> | |
#include <climits> | |
#include <queue> | |
#include <vector> | |
#include <map> | |
#include <cstdlib> | |
#include <fstream> | |
#include <iomanip> | |
#include <iostream> | |
#include <sstream> // istringstream buffer(myString); |