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
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
const int maxn = 101; | |
int main () { | |
int n; | |
cin >> n; | |
int f[maxn][maxn]; | |
for (int i=0;i<=100;i++){ | |
for (int j=0;j<=100;j++){ |
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
//Unfinshed | |
#include <iostream> | |
#include <cstdio> | |
int n; | |
const int maxn = 7000; | |
bool check[maxn+1]; | |
void init() { | |
for(int i=0,i<=maxn;i++)check[i]=false; | |
return ; | |
} |
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
const | |
max=100; | |
fin='rectangle.in'; | |
fout='rectangle.out'; | |
var | |
f:array[0..max+1,0..max+1] of integer; | |
n,k,i,j,x1,y1,x2,y2,ans:integer; | |
begin | |
assign(input,fin); reset(input); | |
assign(output,fout);rewrite(output); |
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
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
int main(){ | |
freopen("lottery.in","r",stdin); | |
freopen("lottery.out","w",stdout); | |
int n; | |
cin >> n; | |
int caipiao[8]; | |
for (int i=1;i<=7;i++)scanf("%d",&caipiao[i]); |
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
//POJ NO.2386 LAKE COUNTING | |
#include <iostream> | |
#include <cstdio> | |
using namespace std; | |
int N,M; | |
const int Max = 10000; | |
char field[Max][Max+1]; //園子 | |
void dfs(int x,int y){ | |
field[x][y]='.'; | |
for (int dx=-1;dx<=1;dx++){ |
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
#include <iostream> | |
#include <cstdio> | |
#include <vector> | |
using namespace std; //爲什麽總是忘!!! | |
typedef vector<int> vec; | |
typedef vector<vec> mat; | |
typedef long long lint; | |
const int M = 10000; | |
//caculate A*B | |
mat martix(mat &A,mat &B) { |
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
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
typedef unsigned int uint; | |
void pow(uint x,uint y){ | |
uint pow; | |
if(x == 1) | |
cout << 1; | |
if(x != 0 && y == 0) | |
cout << 1; |