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 <cstdio> | |
#include <cstdlib> | |
#include <algorithm> | |
#include <ext/rope> | |
#include <cstring> | |
using namespace std; | |
using namespace __gnu_cxx; | |
char buff0[111111],buff1[111111]; | |
bool check(rope<char> &str, int x,int y, int 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
class Set | |
constructor :(array=[])-> | |
@ary = array | |
@pos = {} | |
for value,key in @ary | |
if @pos.hasOwnProperty value | |
@pos[value].push key | |
else | |
@pos[value] = [key] |
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 <cstring> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cassert> | |
#include <map> | |
#include <cctype> | |
#ifdef _WIN32 | |
#include <Windows.h> | |
#endif | |
using namespace std; |
NewerOlder