Search found 5 matches

by talz13
Tue Jun 25, 2013 12:03 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 18114

Re: WA on problem 103

K, I stopped suppressing the newline at the end of the output, but still got WA.
by talz13
Sun Jun 23, 2013 3:42 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 18114

WA on problem 103

I'm getting WA on problem 103... I am testing with the sample input from the algorithmist page http://algorithmist.com/index.php/UVa_103 And here is my output: 5 3 1 2 4 5 4 7 2 5 8 1 1 5 4 5 1 2 3 13 1 7 8 9 10 26 12 11 13 17 19 18 20 There's no hanging endlines or whitespace AFAIK, and my solution...
by talz13
Thu Sep 16, 2010 5:05 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 28760

Re: WA 488

Can't figure out what's wrong with my answer. I don't print a blank line at the top of my output, I only output a blank line between frequency loops and cases, and I don't print anything after the last number of the last frequency loop of the last case. I'm using cin and cout, but I still come in wi...
by talz13
Mon Sep 13, 2010 7:27 pm
Forum: Volume 4 (400-499)
Topic: 457 - Linear Cellular Automata
Replies: 25
Views: 11598

Re: Linear Cellular Automata 457

I'm getting WA right now: #include <iostream> using namespace std; const int DISH_ARRAY_SIZE = 40; const int DNA_ARRAY_SIZE = 10; const int DAYS = 50; int calcK(int dishArray[], int index); void printDishArray(int dishArray[]); int main() { int dishArray[DISH_ARRAY_SIZE] = {0}; int updatedDishArray[...
by talz13
Sat Oct 18, 2008 8:13 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 172915

Re: If you get WA in problem 100, read me before post!

I finally got TO getting a WA, after multiple REs... I guess the judge doesn't like packages. Anyway, here's my code that gets WA: import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.StringTokenizer; class Main { /** * @param args */ public static void main(String...

Go to advanced search