This file contains 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
#!/bin/bash | |
# | |
# /etc/init.d/cbojserver | |
# | |
# Starts the cboj daemon to support a powerful online judger system | |
# | |
# chkconfig 345 28 72 | |
# description: Support online judge system, listen the request and judge. | |
# processname: ctserver ctester |
This file contains 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
/* Sweetdumplings<[email protected]> | |
This file is in public domain. | |
*/ | |
#include <cstdio> | |
#include <cstring> | |
#define SIZE 500000 | |
#define TREESIZE 4000 | |
struct Node{ | |
int sl,sr,data; //for data | |
int l,r; //for pointer |
This file contains 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
git diff |grep "\(^+[^+]\|^-[^-]\)" |wc -l |
This file contains 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 <string> | |
#define PRONAME "fishing" | |
char buf[1024]; | |
std::string newfilename; | |
std::string int2string(int d) | |
{ | |
std::string ret; | |
while (d) | |
{ |
This file contains 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 <stdio.h> | |
int main() | |
{ | |
int i,j; | |
float k=10000; | |
for (i=1;i<=50000;++i) | |
{ | |
for (j=1;j<=50000;++j) | |
{ | |
k=k+5.4; |
This file contains 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 <cstring> | |
#define MAXN 1000 | |
#define MAXM 20005 | |
#define oo 0x7fffffff | |
struct eList | |
{ | |
int tot,NowHead[MAXN],Head[MAXN],Pre[MAXM],V[MAXM],U[MAXM],Cap[MAXM]; | |
void AddEdge(int a,int b,int c) |
This file contains 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
for (var i=1 ;i<=8;i+=1) | |
{ | |
$("#Player"+i).click(function(){setMeToTwo(i);}); | |
} |
This file contains 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
for (var i=1 ;i<=8;i+=1) | |
{ | |
$("#Player"+i).click(setMeToTwo(i);); | |
} |
This file contains 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
var Creator=function (number) | |
{ | |
$("#Player"+number).click(function(){setMeToTwo(number);}); | |
} | |
for (var i=1 ;i<=8;i+=1) | |
{ | |
Creator(i); | |
} |
This file contains 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
$("#Player1").click(function(){setMeToTwo(1);}); | |
$("#Player2").click(function(){setMeToTwo(2);}); | |
$("#Player3").click(function(){setMeToTwo(3);}); | |
$("#Player4").click(function(){setMeToTwo(4);}); | |
//... |
OlderNewer