Search found 3 matches

by lucaskt
Fri Nov 21, 2008 11:28 pm
Forum: Volume 8 (800-899)
Topic: 804 - Petri Net Simulation
Replies: 9
Views: 8745

Re: 804 - Petri Net Simulation

I can't find any test cases that make this fail, but am still getting WA, any ideas?

#include <stdio.h>

int main() {
int mi[120][120];
int mc[120][120];
int s[120];
int c, d, f, g, n, t;

int i, j, k;

scanf(" %d", &n);
g = 1;
while (n != 0) {
if (g > 1) putchar('\n');

for (i = 0; i ...
by lucaskt
Thu Mar 20, 2008 12:41 am
Forum: Volume 100 (10000-10099)
Topic: 10050 - Hartals
Replies: 59
Views: 29830

Ok, I'm officially out of ideas. I haven't seen the program fail yet (doing tests by hand, plus getting I/O from you guys),,, what the hell's wrong with it? :P

#include <iostream>
using namespace std;

int week[3650];
int hartals[101];

int main() {
int T, P, N, h, l, d, c, x;
cin >> T;
for ...
by lucaskt
Thu Mar 15, 2007 1:08 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

I haven't really solved it myself yet, but I can spot a problem right away: iIn the name function, fname needs 13 chars because of the terminator.

Cheers,
Lucas

Go to advanced search