Search found 5 matches

by omega
Tue Oct 04, 2005 5:07 am
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 51127

Problem found. I just needed to take a shower and all came to me. One line of code!!!!!!

Note: when storing values for later use, make sure to treat 1 a little differently than everyone else.
by omega
Mon Oct 03, 2005 11:15 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 51127

371 WA with MANY tests

I am getting WA on 371. I have looked at several posts and confirmed output with many ACs. I have also checked for all of the general mistakes... 1 -> 3 , and min before max.... Help anyone?


#include <iostream>
#include <vector>
using namespace std;
const int MAX_DIS = 1000000;
int already_found ...
by omega
Thu Jul 29, 2004 2:28 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65247

Fixed

I feel like a fool, it was an error in one of the if statments.
by omega
Thu Jul 29, 2004 12:15 am
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65247

Update but still WA

I recoded the whole blasted thing in C and still wrong answer!! I changed the algorithm slightly, but at the core it still does the same thing.

[c]#include <stdio.h>

const int MAX_ROWS = 10;
const int MAX_COLS = 100;

int main(void)
{
int a = 0, b = 0, c = 0;
int m = 0, n = 0, matrix[MAX_ROWS ...
by omega
Tue Jul 27, 2004 5:45 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65247

116 WA? All test input works!!

Here's the C++ code
[cpp]#include <iostream.h>
#include <stdio.h>

#ifndef ONLINE_JUDGE
int _fcloseall( void );
FILE *filein = freopen ("input.in", "rt", stdin);
FILE *fileout = freopen ("output.out", "wt", stdout);
#else
FILE *filein = stdin;
FILE *fileout = stdout;
#endif

const int MAX_ROWS ...

Go to advanced search