Search found 3 matches

by MeteorRain
Sun Mar 19, 2006 3:22 pm
Forum: Volume 1 (100-199)
Topic: 128 - Software CRC
Replies: 62
Views: 14605

Sorry about that. My mistake. However, I can only say your program fails for this input. You will have to find the mistake in your code yourself. thank you for your help. i found the mistake and have corrected it.
i now have these results:
this is a test
77 FD

00 00
A
0C 86
RFC: 793
0A 21

but ...
by MeteorRain
Sun Mar 19, 2006 2:17 pm
Forum: Volume 1 (100-199)
Topic: 128 - Software CRC
Replies: 62
Views: 14605

actually, empty string works on my windows too. i use dev-C++ with its gcc compiler.

after added the parantheses, i tried "RFC: 793" but got "81 A2" instead of "10A 21" or "0A 21"... but all sample input works.
i'm completedly confused >"<
by MeteorRain
Sat Mar 18, 2006 7:41 am
Forum: Volume 1 (100-199)
Topic: 128 - Software CRC
Replies: 62
Views: 14605

YEA, Also WA'ed. could anyone give some test case or give some advices? thanks in advance.

// uva128 Software CRC
// MR

#include <stdio.h>
#include <string.h>

int main()
{
char str[1040];
int pos, curr, sl, out;
while(1)
{
gets(str);
if(str[0] == '#')
break;
pos = 1;
curr = str[0];
sl ...

Go to advanced search