Search found 4 matches

by yishiliu666
Mon Oct 20, 2014 1:52 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 50878

147 Dollars WA

Hi everyone, could you please help me check why this code gets WA, I am fairly sure it's correct since I compared my result with result from UVa toolkit and they are the same.

#include<iostream>
#include<cstdio>

using namespace std;
int const N = 6001;
long long dp[N][11];
const int values[] = {1 ...
by yishiliu666
Sun Mar 16, 2014 4:44 pm
Forum: Volume 9 (900-999)
Topic: 990 - Diving for Gold
Replies: 11
Views: 8700

990 Diving for Gold.

Please help me check, I get WA, but this code passed several critical sample test I've came across in this forum

import java.util.Scanner;


public class Main {

/**
* @param args
*/
static int d[], v[];
static int trace[][];
static int dp[][];
static int count=0;

public static void ...
by yishiliu666
Wed Mar 12, 2014 7:03 am
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65216

Re: Weired Runtime Error with exercise 116

Use class Main

Thanks for the pointer, it can run on UVa now. However I got Wrong Answer... couldn't really understand it since my approach seems to be right. Anyway, Could you kindly help me check my code. I've tested it using some cases as following.

5 6
3 4 1 2 8 6
6 1 8 2 7 4
5 9 3 9 9 5
8 ...
by yishiliu666
Tue Mar 11, 2014 2:35 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65216

Weired Runtime Error with exercise 116

Can Anyone help check my code with problem 116? I am able to get correct result on my own machine but failed to be recognized by the UVa. It issued Runtime Error every time I posted it.
---------------------------------------------------------------------------

import java.io.FileNotFoundException ...

Go to advanced search