表示首次做完一套比赛的题目,HDU2010省赛集训队选拔赛(校内赛),纪念下。
usaco1.5.4不停超时的垃圾代码……

一些常用头文件及调试用代码(3.17)

苗条 posted @ 2010年3月18日 05:35 in acm , 1300 阅读

 

 

#include "cstdlib"
#include "cctype"
#include "cstring"
#include "cstdio"
#include "cmath"
#include "algorithm"
#include "vector"
#include "string"
#include "iostream"
#include "sstream"
#include "set"
#include "queue"
#include "stack"
#include "fstream"
#include "iomanip"
#include "bitset"
#include "list"
#include "ctime"
using namespace std;
 
typedef __int64					LL;
typedef unsigned __int64		ULL;
typedef unsigned char			uchar;
#define CC(m,what)				memset(m,what,sizeof(m))
#define FOR(i,a,b)				for( i = (a); i < (b); ++i )
#define FF(i,a)					for( i = 0; i < (a); ++i )
#define FFD(i,a)				for( i = (a)-1; i >= 0; --i )
#define FORD(i,a,b)				for( i = (a)-1; i >= (b); --i )
#define LEFT(a)					((a)<<1)
#define RIGHT(a)				(((a)<<1)+1)
#define SZ(a)					((int)a.size())
#define PP(n,m,a)				puts("---");FF(i,n){FF(j,m)printf("%10d", a[i][j]);puts("");}
const double eps = 1e-11;
const double Pi = acos(-1.0);
const int    dir[4][2] = {0, 1, 1, 0, 0, -1, -1, 0};

FILE *fpin = fopen("data.in","wr+");;
FILE *fpout = fopen("data.out","wr+");

freopen("in.txt","r",stdin)

ifstream fin ("data.out");
ifstream fon ("data1.out");

int main() {
	int T = 1;
	string a, b;
	while ( fin >> a ) {
		fon >> b;
		++T;
		if ( a != b ) {
			cout << T << " " << a << " " << b << endl;
			system("Pause");
		}
	}
	return 0;
}

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter