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
#coding=utf-8 | |
import os | |
import socket | |
import select | |
from time import sleep | |
import binascii | |
class Client(object): | |
def __init__(self): |
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
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; |
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
// 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) { |
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
#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 |
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
#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 |
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
#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 * |
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
2 4 | |
XXXX | |
XOOO | |
4 4 | |
XXXX | |
OOOO | |
XXXX | |
OOOO |
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
#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: |
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
#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: |
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
....... | |
....... | |
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; |