Algorithm

February 20, 2013 Number Theory No comments

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//0maxmprime12forj+iprime0
 
#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
int const maxm=1000001;
int prime[maxm];
void sievePrime()
{
	for(int i=0;i<maxm;i++)
		prime[i]=1;
	prime[0]=0;
	prime[1]=0;
	int max=sqrt(maxm*1.0);
	for(int i=2;i<=max;i++)
	{
		if(prime[i])
		for(int j=i+i;j<maxm;j=j+i)
		{
			prime[j]=0;
		}
	}
}
int main()
{
	sievePrime();
	int i;
	for(i=0;i<100;i++){
		if(prime[i])
		printf("\n%d\n",i);
	}
	return 0;
}

meeting point-1

February 20, 2013 Number Theory No comments

Meeting point-1
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 987 Accepted Submission([……]

Read more

DFS+Digital Square

February 20, 2013 Search 1 comment

Digital Square
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 743 Accepted Submission(s[……]

Read more

DFS: A Knight’s Journey

February 20, 2013 Search No comments

A Knight’s Journey

Time Limit : 2000/1000ms (Java/Other)

DFS: The Castle

February 20, 2013 Search No comments

The Castle
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other)

Total Submission(s) : 20 Accepted Submission(s) : 13[……]

Read more

DFS: Sticks

February 20, 2013 Search No comments

Sticks
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 20000/10000K (Java/Other)

Total Submission(s) : 12 Accepted Submission(s) : 7

P[……]

Read more

DFSRed and Black

February 20, 2013 Search No comments

Red and Black
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 60000/30000K (Java/Other)
Total Submission(s) : 20 Accepted Submission(s) : 1[……]

Read more

DFS: Nightmare

February 20, 2013 Search No comments

Nightmare
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 42 Accepted Submission(s) : 18
P[……]

Read more

BFS: Knights Move

February 20, 2013 Search No comments

Knight Moves
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 30 Accepted Submission(s) : 19[……]

Read more

BFSCatch That Cow

February 20, 2013 Search No comments

Catch That Cow

Time Limit : 4000/2000ms (Java/Other)

Nim()

February 20, 2013 Game Theory No comments

note: This article comes from the Internet. Please contact me via lethic@163.com if there is any infringement.
lethic@163.com.

Nim

n1
NimPe[……]

Read more

what is in your name

February 20, 2013 Network Flow No comments

What’s In A Name?
Time Limit: 1000MS Memory Limit: 10000K
Total Submissions: 2083 Accepted: 741
Description
The FBI is conducting a surveillan[……]

Read more

USACO 4.2.1 Ditch

February 20, 2013 Network Flow No comments

note: This article comes from the Internet. Please contact me via lethic@163.com if there is any infringement.
lethic@163.com.

USACO 4.2.1 D[……]

Read more

SAP

February 20, 2013 Network Flow No comments

note: This article comes from the Internet. Please contact me via lethic@163.com if there is any infringement.
lethic@163.com.

1. Maximum Flow:[……]

Read more

Girls ans Boys

February 20, 2013 Network Flow No comments

Girls and BoysTime Limit:5000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
SubmitStatus
Description
In the second year of the univers[……]

Read more

Machine Schedule

February 20, 2013 Network Flow No comments

Machine ScheduleTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
SubmitStatus
Description
As we all know, machine schedulin[……]

Read more

Divisibility

February 20, 2013 Network Flow No comments

Description
As we know,the fzu AekdyCoin is famous of math,especially in the field of number theory.So,many people call him “the descendant of Chen J[……]

Read more

Air Raid

February 20, 2013 Network Flow No comments

Air RaidTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u
SubmitStatus
Description
Consider a town where all the streets a[……]

Read more

February 20, 2013 Network Flow No comments

note: This article comes from the Internet. Please contact me via lethic@163.com if there is any infringement.
lethic@163.com.

http://www.matrix6[……]

Read more

February 20, 2013 Network Flow No comments

note: This article comes from the Internet. Please contact me via lethic@163.com if there is any infringement.
lethic@163.com.

1.
1.
2.p1,p2,..[……]

Read more