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 <variant> | |
| #include <optional> | |
| #include <type_traits> | |
| #include <functional> | |
| #include <memory> | |
| #include <vector> | |
| #include <iostream> | |
| #include <cmath> | |
| #include <ctime> |
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 <variant> | |
| #include <iostream> | |
| #include <vector> | |
| #include <stdint.h> | |
| #include <limits> | |
| #include <cassert> | |
| namespace ttt { | |
| enum TagId { | |
| _first, |
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 <string.h> | |
| #include <stdint.h> | |
| static const int X = 100; | |
| int64_t cache[X]; | |
| int64_t fn(int64_t a) { | |
| if (cache[a] > 0) return cache[a]; | |
| if (a == 0) return 0; |