Skip to content

Instantly share code, notes, and snippets.

#coding=utf-8
import os
import socket
import select
from time import sleep
import binascii
class Client(object):
def __init__(self):
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
using System.IO;
using System.Drawing;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Linq;
using System.Net.Sockets;
// 1-indexed
template<class T>
class BIT_2D {
T bit[512 + 1][512 + 1];
int h, w;
public:
BIT_2D() {}
BIT_2D(int H, int W) {
@math314
math314 / psi.py
Created September 22, 2014 14:06
CSAW 2014 crypto 200
#coding=utf-8
import os
import socket
import select
from time import sleep
import binascii
from subprocess import Popen,STDOUT,PIPE
import os
from math import *
import string
#coding=utf-8
import os
import socket
import select
from time import sleep
import binascii
from subprocess import Popen,STDOUT,PIPE
import os
import math
import itertools
#coding=utf-8
import os
import socket
import select
from time import sleep
import binascii
from subprocess import Popen,STDOUT,PIPE # Python 2.4以上が必要
import os
from math import *
2 4
XXXX
XOOO
4 4
XXXX
OOOO
XXXX
OOOO
#coding=utf-8
import sys,os
import re
from collections import defaultdict,namedtuple
from itertools import *
def scc(edges,redges):
def dfs(v):
used.add(v)
if v in edges:
#coding=utf-8
import sys,os
import re
from collections import defaultdict,namedtuple
from itertools import *
def scc(edges,redges):
def dfs(v):
used.add(v)
if v in edges:
.......
.......
8049c21: 8d 44 24 2c lea eax,[esp+0x2c];
8049c25: 83 c0 05 add eax,0x5;
8049c28: 89 04 24 mov DWORD PTR [esp],eax;
8049c2b: e8 15 f9 ff ff call 8049545 <calloc@plt+0xd05>;
8049c30: eb 0c jmp 8049c3e <calloc@plt+0x13fe>;
8049c32: c7 04 24 c1 a0 04 08 mov DWORD PTR [esp],0x804a0c1;