Search found 7 matches
- Sun Jan 29, 2006 10:29 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10986 - Sending email
- Replies: 65
- Views: 39444
- Sun Jan 29, 2006 7:12 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10986 - Sending email
- Replies: 65
- Views: 39444
Getting TLE
I think there is nothing to do with the algorithm to make the solution faster. Because everybody talked here tried or solved it with dijkstra. But i m getting TLE for my dijkstra. So I m giving my dijkstra code here so that anybody can give me any hint to make my code faster.
#include<cstdio ...
#include<cstdio ...
- Tue Jan 17, 2006 8:51 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10735 - Euler Circuit
- Replies: 14
- Views: 6092
- Fri Jan 13, 2006 4:26 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10735 - Euler Circuit
- Replies: 14
- Views: 6092
- Thu Jan 12, 2006 8:59 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10735 - Euler Circuit
- Replies: 14
- Views: 6092
10735 WA
getting WA
I have tried my program with the following IO
Input:
9
6 8
1 2 U
2 3 U
3 4 U
4 5 U
2 5 D
2 6 U
6 4 U
4 1 U
6 13
1 2 U
1 3 U
1 3 U
1 4 U
2 3 U
2 5 D
2 5 U
5 3 D
5 6 U
6 3 U
4 6 U
4 6 U
3 4 U
6 13
1 2 U
1 3 U
1 3 U
1 4 U
2 3 U
2 5 D
2 5 U
5 3 D
5 6 U
6 3 D
4 6 U
4 6 U
3 4 U
6 12
1 2 ...
I have tried my program with the following IO
Input:
9
6 8
1 2 U
2 3 U
3 4 U
4 5 U
2 5 D
2 6 U
6 4 U
4 1 U
6 13
1 2 U
1 3 U
1 3 U
1 4 U
2 3 U
2 5 D
2 5 U
5 3 D
5 6 U
6 3 U
4 6 U
4 6 U
3 4 U
6 13
1 2 U
1 3 U
1 3 U
1 4 U
2 3 U
2 5 D
2 5 U
5 3 D
5 6 U
6 3 D
4 6 U
4 6 U
3 4 U
6 12
1 2 ...
- Sat Dec 03, 2005 5:35 pm
- Forum: Volume 3 (300-399)
- Topic: 315 - Network
- Replies: 68
- Views: 33327
315 getting WA
getting WA
i tried my prog with the following IO
input
8
2 4 5
1 3
2 4 7
1 5 6 8 7 3
1 4 6
5 4 8
3 4
4 6
0
8
2
1 3
2 4 5 6
3 7 8
3
3
4 8
4 7
0
5
5 1 2 3 4
0
6
2 1 3
5 4 6 2
0
5
2
3
4
5
0
5
2 3 4 5
3 1
2 1
1 5
1 4
0
6
2 3
1 4
1 4 5
2 3 6
3 5
4 5
0
9
1 2
2 3
2 5
5 4 6 8
7 8
9 8
0
3
1 2
3 ...
i tried my prog with the following IO
input
8
2 4 5
1 3
2 4 7
1 5 6 8 7 3
1 4 6
5 4 8
3 4
4 6
0
8
2
1 3
2 4 5 6
3 7 8
3
3
4 8
4 7
0
5
5 1 2 3 4
0
6
2 1 3
5 4 6 2
0
5
2
3
4
5
0
5
2 3 4 5
3 1
2 1
1 5
1 4
0
6
2 3
1 4
1 4 5
2 3 6
3 5
4 5
0
9
1 2
2 3
2 5
5 4 6 8
7 8
9 8
0
3
1 2
3 ...
- Mon Sep 19, 2005 2:56 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10795 - A Different Task
- Replies: 9
- Views: 7986
10795 getting WA
getting WA
I have tried my program with the following IO
input:
5
1 1 1 1 1
2 3 1 2 3
5
2 3 1 2 3
3 3 3 3 3
5
1 1 1 1 1
3 3 3 3 3
5
1 1 1 1 1
3 1 2 2 1
6
1 1 1 2 2 2
2 2 2 3 3 3
9
1 2 3 3 2 1 1 2 3
3 2 1 1 2 3 3 2 1
4
1 1 1 1
2 2 2 3
4
1 1 1 2
1 1 1 3
4
1 1 1 1
1 1 1 1
3
1 1 1
2 2 2
3
1 2 3
3 2 1 ...
I have tried my program with the following IO
input:
5
1 1 1 1 1
2 3 1 2 3
5
2 3 1 2 3
3 3 3 3 3
5
1 1 1 1 1
3 3 3 3 3
5
1 1 1 1 1
3 1 2 2 1
6
1 1 1 2 2 2
2 2 2 3 3 3
9
1 2 3 3 2 1 1 2 3
3 2 1 1 2 3 3 2 1
4
1 1 1 1
2 2 2 3
4
1 1 1 2
1 1 1 3
4
1 1 1 1
1 1 1 1
3
1 1 1
2 2 2
3
1 2 3
3 2 1 ...