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
import java.util.*; | |
import java.io.*; | |
public class Main { | |
static long state; | |
static long rand() { | |
state = (state * 123456789 + 765321) % 1000000007; | |
return state; | |
} |
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<bitset> | |
#include<chrono> | |
#include<cassert> | |
#include<stdio.h> | |
#include<iostream> | |
#include<vector> | |
#include<algorithm> | |
#include<string> | |
#include<string.h> | |
using namespace std; |
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
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | |
// VEB | |
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | |
struct VEB_BASE { | |
static const unsigned INVALID = ~0; | |
unsigned mi, ma; | |
VEB_BASE() : mi(INVALID), ma(0) { } |
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
spaghetti source (http://www.prefield.com/algorithm/index.html) | |
indy256 (https://sites.google.com/site/indy256/) | |
e-maxx (http://e-maxx.ru/algo/) | |
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<cassert> | |
#include<queue> | |
#include<cstdio> | |
#include<iostream> | |
#include<vector> | |
#include<algorithm> | |
#include<string> | |
#include<cstring> | |
using namespace std; |
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
template<class T> struct AVLTreeSet { | |
struct Node { | |
T val; | |
int s, h; | |
Node *l, *r; | |
Node(const T &val=T()): val(val) { s = h = 1; l = r = NULL; } | |
inline Node*& ch(bool b) { return b? r: l; } | |
inline void resize() { | |
s = 1 + size(l) + size(r); | |
h = 1 + max(height(l), height(r)); |
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
template<class T> struct RBSTSet { | |
struct Node { | |
T val; | |
int s; | |
Node *l, *r; | |
Node(const T &val=T()): val(val), s(1) { l = r = NULL; } | |
inline Node*& ch(bool b) { return b? r: l; } | |
inline void resize() { s = 1 + size(l) + size(r); } | |
}; | |
Node *root; |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>dvorak_qwerty</name> | |
<appendix></appendix> | |
<appendix>For JIS Mac</appendix> | |
<appendix>COMMAND_L+KEY_1 to P-DVORAK, COMMAND_L+2 to US-QWERTY</appendix> | |
<appendix></appendix> | |
<appendix>## US-QWERTY ##</appendix> | |
<appendix>1234567890-=\</appendix> |
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
# natsugiriが参加すべきプロコンサイトまとめ | |
## Short Term | |
TopCoder (SRM, TCO) | |
CodeForces (Codeforces Round, Croc Champ, Surprise Language) | |
CodeChef (Cook-Off, Lunchtime) | |
HackerRank (101) | |
AtCoder (ARC, ABC, JAG) | |
ACM-ICPC |