Skip to content

Instantly share code, notes, and snippets.

@Mkalo
Mkalo / B.cpp
Created August 6, 2017 19:21
Maratona Visagio - Problema B
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll pa(ll a, ll b) {
ll n = (b - a + 1);
return (a + b) * n / 2;
}
#include <bits/stdc++.h>
struct Key {
union {
int64_t num;
std::string* str;
};
enum {
NUMBER,
@Mkalo
Mkalo / matrix.cpp
Created June 4, 2017 23:05
Matrix class in C++ with addition, multiplication, concatenation and reduced echelon form operations.
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <cstdint>
#include <assert.h>
template <typename T>
T typed_abs(T value) {
diff --git a/src/iomap.cpp b/src/iomap.cpp
index 81e97d92..85a42154 100644
--- a/src/iomap.cpp
+++ b/src/iomap.cpp
@@ -22,6 +22,7 @@
#include "iomap.h"
#include "bed.h"
+#include "teleport.h"