if u have Tim Limit
my algo do this pretty fast :)
try this :
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 0 0
1 100 100 1 ...
Search found 4 matches
- Sun Jan 01, 2012 2:15 am
- Forum: Volume 8 (800-899)
- Topic: 821 - Page Hopping
- Replies: 5
- Views: 6634
- Fri Dec 30, 2011 10:47 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10793 - The Orc Attack
- Replies: 35
- Views: 24982
Re: 10793 - The Orc Attack
Hey try this input i think is the critical one
My Acc output this:
Code: Select all
2
5 4
1 2 0
1 3 0
1 4 0
1 5 0
5 4
1 2 1
1 3 1
1 4 1
1 5 1
My Acc output this:
Code: Select all
Map 1: 0
Map 2: -1
- Wed Dec 21, 2011 11:17 pm
- Forum: Volume 3 (300-399)
- Topic: 341 - Non-Stop Travel
- Replies: 39
- Views: 30392
Re: 341 Non-Stop Travel
Try this input
5
2 3 3 4 6
3 1 2 3 7 5 6
1 4 5
0
1 4 7
2 2
2
1 2 5
1 1 6
1 2
7
4 2 5 3 13 4 8 5 18
2 3 7 6 14
1 6 6
2 3 5 5 9
3 6 2 7 9 4 6
1 7 2
0
1 7
0
Answer should be this
Case 1: Path = 2 2; 0 second delay
Case 2: Path = 1 2; 5 second delay
Case 3: Path = 1 2 3 6 7; 20 second delay ...
5
2 3 3 4 6
3 1 2 3 7 5 6
1 4 5
0
1 4 7
2 2
2
1 2 5
1 1 6
1 2
7
4 2 5 3 13 4 8 5 18
2 3 7 6 14
1 6 6
2 3 5 5 9
3 6 2 7 9 4 6
1 7 2
0
1 7
0
Answer should be this
Case 1: Path = 2 2; 0 second delay
Case 2: Path = 1 2; 5 second delay
Case 3: Path = 1 2 3 6 7; 20 second delay ...
- Tue Dec 20, 2011 4:14 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11733 - Airports
- Replies: 23
- Views: 11502
Re: 11733 - Airports
Hi help me pls i cannot find the WA
tell pls if i misunderstood the problem or gimme a critical Input pls
#include "stdafx.h"
#include<string>
#include<stdio.h>
#include<vector>
#include<string.h>
#include<utility>
#include<queue>
using namespace std;
vector<int> pset(100000);
int findSet(int i ...
tell pls if i misunderstood the problem or gimme a critical Input pls
#include "stdafx.h"
#include<string>
#include<stdio.h>
#include<vector>
#include<string.h>
#include<utility>
#include<queue>
using namespace std;
vector<int> pset(100000);
int findSet(int i ...