Skip to content

Instantly share code, notes, and snippets.

View chaoxu's full-sized avatar
😀

Chao Xu chaoxu

😀
  • University of Electronic Science and Technology of China
  • Chengdu, Sichuan, China
View GitHub Profile
80
18 21 26 36 37
9 16 17 26 27 34 35 37 38 39
1 20 26 31 38
2 3 14 18 21 25 32 34 35 37 38
1 3 9 10 17 19 23 25 31
1 4 12 14 34
1 2 4 8 10 11 15 17 18 37 38
22 24 25 32 35 37
7 13 14 23 28 32 33 38
import java.util.*;
class BitArray implements Comparable<BitArray> {
public int size;
public int id;
public boolean[] a;
public ArrayList<Integer> e;
public int size(){
return size;
}
public BitArray(int i, int k){
#include <iostream>
#include <bitset>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
using namespace std;
const int N=1000;
int counter=0;
int ub;
63
25
5 0 1 2 3 4
8 5 6 7 8 9 10 11 12
6 0 13 14 15 16 17
5 5 18 19 20 21
4 22 23 24 25
4 22 26 27 28
4 18 29 30 31
4 32 33 34 35
import java.util.*;
public class msc{
public static int ub;
public static ArrayList<Integer> result;
public static void main(String[] args){
Scanner in=new Scanner(System.in);
int e = in.nextInt();
int n = in.nextInt();
in.nextLine();
@chaoxu
chaoxu / notifications.sh
Created April 25, 2010 02:37
clear + cat done every time a file changes
#!/bin/sh
T=0
while true; do
P=`stat -c %Y $1`
if [ "$T" -ne "$P" ];
then
T=$P
clear
cat $1
date
\documentclass[10pt]{article}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\definecolor{xdxdff}{rgb}{0.66,0.66,0.66}
\definecolor{qqqqff}{rgb}{0.33,0.33,0.33}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.5cm,y=0.5cm]
\clip(0,-20) rectangle (30,0);
\draw (8.55,-9.69)-- (17.64,-15.71);
\documentclass[10pt]{article}
\usepackage{pgf,tikz}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\definecolor{qqqqff}{rgb}{0.33,0.33,0.33}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.5cm,y=0.5cm]
\clip(0,-20) rectangle (30,0);
\draw [dotted] (8.55,-9.69) circle (2.95cm);
\draw (4.1,-5.8)-- (6.7,-15.3);
import java.util.*;
public class schedule{
public static ArrayList<Integer> sol;
public static int max_weight=0;
public static int max_cost=0;
public static void main(String[] args){
//ALL these is just to read data from standard input.
Scanner in = new Scanner(System.in);
//first line contains 1 integer, indicate how many courses specified by the user
int n = in.nextInt();
#!/bin/sh
mkdir $1
i=0
t=-1
if [ $# -eq 3 ]
then
t=$3
fi
while [ $i -ne $t ]
do