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; | |
using ll = long long; | |
ll pa(ll a, ll b) { | |
ll n = (b - a + 1); | |
return (a + b) * n / 2; | |
} |
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> | |
struct Key { | |
union { | |
int64_t num; | |
std::string* str; | |
}; | |
enum { | |
NUMBER, |
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 <string> | |
#include <iostream> | |
#include <iomanip> | |
#include <sstream> | |
#include <vector> | |
#include <cstdint> | |
#include <assert.h> | |
template <typename T> | |
T typed_abs(T value) { |
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
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" | |