Search found 4 matches

by Xeno
Sat Nov 22, 2003 10:00 am
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 25491

Exactly right, UFP2161. I changed my terminating condition and it worked like a charm. :D Thanks a lot.

In my defense, the judge gets mad when submissions generate answers with extraneous whitespace, so I don't think it's right that the judge's input files have extra whitespace in them. Gar. :x
by Xeno
Sat Nov 22, 2003 8:56 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 54972

Yay, I just solved this problem. Much credit goes to Marteen for his test cases. However, a number of them are invalid inputs, and I thought I'd clean up the list a little bit.

100 1
1000 1
10000 1
The above three are invalid because neither 100, 1000, nor 10000 = 2^x for any x (the base of the ...
by Xeno
Wed Nov 19, 2003 11:12 pm
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 25491

Bumpity. Come on, someone out there must have solved this problem. What's wrong with my code?
by Xeno
Mon Nov 17, 2003 2:12 am
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 25491

567 (Risk) - Wrong Answer

[cpp]// http://acm.uva.es/p/v5/567.html

#include <iostream>
#include <vector>
#include <iomanip>
using namespace std;

const int n = 20;

int main()
{
int set = 0;

while (!cin.eof())
{
set++;
vector<vector<int> > table(n, vector<int>(n, 0));

for (int i = 0; i < n - 1; ++i)
{
int hnn ...

Go to advanced search