This file contains hidden or 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
/* | |
Being so lame it's still my bachelor's diploma paper part. | |
feel free to use. | |
Anatoly Zinovyev (Ender Eyre) 2016 ._. | |
∧_∧ | |
( ・ω・。)つ━☆・*。 | |
⊂ ノ ・゜+. | |
しーJ °。+ *´¨) | |
.· ´¸.·*´¨) ¸.·*¨) | |
(¸.·´ (¸.·'* ☆ |
This file contains hidden or 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 <iostream> | |
#include <vector> | |
using namespace std; | |
static long long FactNaive(int n) | |
{ | |
long long r = 1; | |
for (int i = 2; i <= n; ++i) | |
r *= i; |
This file contains hidden or 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 <vector> | |
#include <unordered_map> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/spirit/include/phoenix.hpp> | |
class ADefinition; | |
using namespace std; |
This file contains hidden or 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 <iostream> | |
#include <stdexcept> | |
#include <vector> | |
#include <unordered_map> | |
using namespace std; | |
class ADefinition; | |
typedef unordered_map <string, int> vmap; | |
typedef unordered_map <string, ADefinition*> FMAP; |