Search found 10 matches

by HKcow
Mon Sep 15, 2003 6:39 pm
Forum: Volume 3 (300-399)
Topic: 389 - Basically Speaking
Replies: 94
Views: 36446

389, WA, pls help

Hi experts,

Writing a post here to seek help is my last step and i think i need to do so now :roll:
I have prepared a long test case and I still can't find any error, could anyone help me to figure out why my code still get WA? THX!

[cpp]
#include <stdio.h>
#include <string.h>

int x2ten(char ...
by HKcow
Wed Jan 01, 2003 12:04 pm
Forum: Volume 103 (10300-10399)
Topic: 10390 - Bean Counting
Replies: 3
Views: 2260

10390 - Bean Counting

Please suggest why my program run for more than 10 sec.
In my test case I have no problem ^_^
[cpp]
#include <stdio.h>
#include <string.h>

void main() {
int bean[26], guess[26];
int i, n, m, g[5], tp, tg;
char line[1001], c1, c[5];
double potcount;
scanf("%d", &n);
gets(line);
gets(line ...
by HKcow
Fri Oct 11, 2002 7:49 pm
Forum: Volume 101 (10100-10199)
Topic: 10142 - Australian Voting
Replies: 82
Views: 45658

10142 - Australian Voting

I have debugged it for a long time, still WA, could any kind person help me to fix it or find out a problematic test case? Many Many THANKS!
[cpp]
// @begin_of_source_code

#include <stdio.h>
#include <stdlib.h>

void main() {
char line[60], name[20][81], list[1000][21];
int box[20], a, vote, n, m ...
by HKcow
Tue Oct 08, 2002 7:34 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108617

I have fixed it

:lol: I have fixed it, however,
:( it god WA now, no run time error, can you find another wrong case for my programme..
[cpp]#include <stdio.h>

int table[30][30];

bool findpos(int t1, int t2, int &s1, int &p1, int &s2, int &p2) {
if (t1==t2)
return false;
int i, j, k=0;
for (i=0; k!=2; i ...
by HKcow
Tue Oct 08, 2002 7:06 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108617

Really thx~

Thank you very much. I am going to fix it now
by HKcow
Sat Oct 05, 2002 2:12 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108617

101, Runtime Error

I have got run time error, Could anyone help me to check for it?
I can run it on my system with all the test cases i made.
[cpp]
#include <stdio.h>

int table[30][30];

bool findpos(int t1, int t2, int &s1, int &p1, int &s2, int &p2) {
if (t1==t2)
return false;
int i, j, k=0;
for (i=0; k!=2; i ...
by HKcow
Sun Sep 29, 2002 4:50 pm
Forum: Volume 6 (600-699)
Topic: 603 - Parking Lot
Replies: 11
Views: 6557

Hi, Thx for yr reply~

So, in what cases do you think i can't read the input?
Because i have already considered about the case of no input in the second part.
by HKcow
Sun Sep 29, 2002 12:55 pm
Forum: Volume 6 (600-699)
Topic: 603 - Parking Lot
Replies: 11
Views: 6557

603 - Parking Lot

Hi, Could anyone tell me why my programme run in WA?
And will there be more than 1 car waiting for one car park? If yes, my programme can't solve the problem.
Please suggest, thx
HKcow

[cpp]
#include <stdio.h>
#include <string.h>

void main() {
int i, j, k, n, waiting;
int wait[20];
int park[20 ...
by HKcow
Fri Aug 30, 2002 8:35 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 50744

Oh thx, but I got this right.
But
aa bab
i will get correct~
^_^, thx
HKcow
by HKcow
Fri Aug 30, 2002 2:37 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 50744

10340, why wa?

Could any one help me to check why it is getting wa?

[cpp]
#include <stdio.h>
#include <string.h>

void main() {
char *a, *b;
a = new char [200000];
b = new char [200000];

int i, j;
while (scanf("%s %s", a, b)== 2) {
j=0;
for (i=0; (a !='\0') && (b[j]!='\0'); i++)
for (; (b[j]!='\0') && (a !=b[j ...

Go to advanced search