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
import string | |
from socket import * | |
from struct import pack, unpack | |
from commands import getoutput | |
from time import sleep, time | |
from sys import argv, exit | |
def read_noblock(p, n): | |
p.setblocking(False) | |
try: |
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
#from pexpect import * | |
from commands import getoutput | |
from struct import pack, unpack | |
from subprocess import Popen, PIPE | |
from time import sleep | |
from fcntl import fcntl, F_GETFL, F_SETFL | |
from os import O_NONBLOCK, read | |
from os import putenv, environ | |
libc_base = 0x555a2000 |
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 <vector> | |
#include <deque> | |
#include <utility> | |
#include <algorithm> | |
#include <functional> | |
using namespace std; | |
typedef long long int LLI; | |
typedef pair<LLI, LLI> Pair; // (a, b) := ax+b |
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 <cassert> | |
#include <vector> | |
using namespace std; | |
int ans; | |
int n; | |
int m; | |
int t; | |
bool used[10000]; |
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 <cmath> | |
#include <utility> | |
#include <algorithm> | |
using namespace std; | |
typedef pair<int, int> Pair; | |
int maxt; | |
int s; |
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 <cmath> | |
#include <algorithm> | |
using namespace std; | |
#define EPS 10e-3 | |
int N; | |
double A; | |
double high; |
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
import string | |
from socket import * | |
from struct import pack, unpack | |
from commands import getoutput | |
from time import sleep, time | |
from sys import argv, exit | |
def read_noblock(p, n): | |
p.setblocking(False) | |
try: |
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
PlaidDB - Plaid 2015 | |
Prodmanager - Plaid 2015 | |
qttpd - Plaid 2015 | |
tp - Plaid 2015 | |
traveller - Plaid 2015 | |
Weff - CODEGATE 2015 | |
icbm - CODEGATE 2015 | |
beef_steak - CODEGATE 2015 | |
Bookstore - CODEGATE 2015 | |
Olive and Mushroom Pizza - CODEGATE 2015 |
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> | |
bool check(unsigned short ax, unsigned short bx) { | |
unsigned short tmp; | |
for (int i=0; i<23; i++) { | |
if (bx < ax) return false; | |
if (ax == 0) return false; | |
bx -= ax; | |
tmp = ax; |
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
# encoding: utf-8 | |
from commands import getoutput | |
from math import sqrt | |
# numbers: DPテーブルっぽいもの。numbers[i]は数値iを作れるJSの最小コードをもつ。 | |
# 生成される数を短くする都合上、numbers[0]とnumbers[1]は単体では数値にならないようになっている(後で変更) | |
numbers = ["[]", "!+[]"] + [""]*999; | |
# 0から9までを予め生成 |