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
// c - __attribute__((constructor)) equivalent in VC? - Stack Overflow | |
// http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc/2390626#2390626 | |
// Rev.5 | |
// Initializer/finalizer sample for MSVC and GCC/Clang. | |
// 2010-2016 Joe Lowe. Released into the public domain. | |
#include <stdio.h> | |
#include <stdlib.h> | |
#ifdef __cplusplus |
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
// Initializer/finalizer sample for MSVC and GCC/Clang. | |
// 2010-2016 Joe Lowe. Released into the public domain. | |
#include <stdio.h> | |
#include <stdlib.h> | |
#ifdef __cplusplus | |
#define INITIALIZER(f) \ | |
static void f(void); \ | |
struct f##_t_ { f##_t_(void) { f(); } }; static f##_t_ f##_; \ | |
static void f(void) |
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
from collections import defaultdict as dd | |
from collections import Counter | |
from pprint import pprint as pp | |
def nopp(*args): pass | |
pp = nopp # comment out this line for debugging | |
YN = {True: 'Yes', False: 'No'} | |
ri = lambda: int(input()) | |
ria = lambda: list(map(int, input().split())) | |
rian = lambda n: [ria() for _ in range(n)] |