:cry: :cry: :cry: :cry: :cry:
Please help me. Because whatever I do I get WA.
I don't know what to do.
[cpp]
#include <iostream>
using namespace std;
char dig[] = {'|','n','9','8','r'};
int print(int a)
{
int i = 0, l = 0, j;
while (a != 0)
{
if (a % 10)
{
for (j = 0; j < a % 10; j ...
Search found 23 matches
- Wed Oct 27, 2004 6:53 pm
- Forum: Volume 2 (200-299)
- Topic: 276 - Egyptian Multiplication
- Replies: 22
- Views: 9962
- Tue Sep 07, 2004 1:38 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10698 - Football Sort
- Replies: 23
- Views: 11678
- Thu Aug 26, 2004 4:38 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10600 - ACM Contest and Blackout
- Replies: 34
- Views: 20210
- Tue Aug 24, 2004 6:34 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10600 - ACM Contest and Blackout
- Replies: 34
- Views: 20210
- Tue Aug 24, 2004 5:06 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10600 - ACM Contest and Blackout
- Replies: 34
- Views: 20210
10600
I can't understand why do I keep getting WA's on 10600, while it look's an easy problem with Kruskal algorithm.
[cpp]
AC
[/cpp]
[cpp]
AC
[/cpp]
- Tue Aug 17, 2004 9:17 am
- Forum: Algorithms
- Topic: A Question about graphs
- Replies: 3
- Views: 2255
- Mon Aug 02, 2004 6:26 pm
- Forum: Algorithms
- Topic: I'm collecting cool graph algorithms problems
- Replies: 13
- Views: 6889
USACO 5.5 Telecowmunication(But I don't know how to solve i :-? :-? )
Farmer John's cows like to keep in touch via email so they have created a network of cowputers so that they can intercowmunicate. These machines route email so that if there exists a sequence of c cowputers a1, a2, ..., a(c) such ...
Farmer John's cows like to keep in touch via email so they have created a network of cowputers so that they can intercowmunicate. These machines route email so that if there exists a sequence of c cowputers a1, a2, ..., a(c) such ...
- Mon Aug 02, 2004 6:17 pm
- Forum: Algorithms
- Topic: A Question about graphs
- Replies: 3
- Views: 2255
A Question about graphs
Question.
Can you tell me an algorithm wich gives the minimum number of vertices that need to be deleted to make vertices v & u disconnected.
Let's see how good you are in algorithms
Can you tell me an algorithm wich gives the minimum number of vertices that need to be deleted to make vertices v & u disconnected.
Let's see how good you are in algorithms
- Sun Aug 01, 2004 6:25 am
- Forum: Volume 105 (10500-10599)
- Topic: 10532 - Combination! Once Again
- Replies: 15
- Views: 7952
- Wed May 19, 2004 3:01 pm
- Forum: Algorithms
- Topic: help with one "usaco hard problem" ... please.....
- Replies: 19
- Views: 11810
- Mon May 17, 2004 2:09 pm
- Forum: Algorithms
- Topic: Need help with USACO problem
- Replies: 4
- Views: 4670
Need help with USACO problem
I can't find any algorithm to solve this problem. Can you help me with ideas.
I am at section 1.4.1 and can't move on.
[TAKEN FROM USACO TRAINING GATEWAY]
Cryptcowgraphy
Brian Dean
The cows of Farmer Brown and Farmer John are planning a coordinated escape from their respective farms and have ...
I am at section 1.4.1 and can't move on.
[TAKEN FROM USACO TRAINING GATEWAY]
Cryptcowgraphy
Brian Dean
The cows of Farmer Brown and Farmer John are planning a coordinated escape from their respective farms and have ...
- Wed May 12, 2004 6:37 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10080 - Gopher II
- Replies: 31
- Views: 26924
10080 TLE
WHY TLE????
Ignore my comments thay are in Armenian.
[cpp]#include <iostream.h>
#include <math.h>
const int NMAX = 400;
int graph[NMAX][NMAX], para[NMAX], cep[NMAX], q[NMAX][NMAX], qn[NMAX], unused[NMAX];
double x[NMAX], y[NMAX];
main()
{
//kardal u karucel graphy
int n, m, v, s, vulner, k, i ...
Ignore my comments thay are in Armenian.
[cpp]#include <iostream.h>
#include <math.h>
const int NMAX = 400;
int graph[NMAX][NMAX], para[NMAX], cep[NMAX], q[NMAX][NMAX], qn[NMAX], unused[NMAX];
double x[NMAX], y[NMAX];
main()
{
//kardal u karucel graphy
int n, m, v, s, vulner, k, i ...
- Thu Apr 15, 2004 12:34 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10242 - Fourth Point !!
- Replies: 30
- Views: 17824
- Tue Apr 13, 2004 6:12 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10242 - Fourth Point !!
- Replies: 30
- Views: 17824
- Tue Apr 13, 2004 5:54 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10207 - The Unreal Tournament
- Replies: 23
- Views: 8762
10207- Invitation to discuss.
Hello everybody.
I wrote a program for this problem, but it gets MLE.
Lets take a look at the problem.
There we can read
1 <= i,j <= 1000
Trying to solve the problem dynamically me see that
Numberofcalls(i,j) = Numberofcalls(i,j-1) + Numberofcalls(i-1,j)+2
This means that for i == j == 1000 we ...
I wrote a program for this problem, but it gets MLE.
Lets take a look at the problem.
There we can read
1 <= i,j <= 1000
Trying to solve the problem dynamically me see that
Numberofcalls(i,j) = Numberofcalls(i,j-1) + Numberofcalls(i-1,j)+2
This means that for i == j == 1000 we ...