i edit my code.
but, No aceepted.
Search found 2 matches
- Wed Jan 25, 2006 2:09 am
- Forum: Volume 4 (400-499)
- Topic: 444 - Encoder and Decoder
- Replies: 155
- Views: 44665
- Tue Jan 24, 2006 2:00 pm
- Forum: Volume 4 (400-499)
- Topic: 444 - Encoder and Decoder
- Replies: 155
- Views: 44665
444 WA
444
i think my code is correct.
i tested it many cases that i saw in this forum.
but, i got WA.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
char buf[880];
char tmp[2];
char tmp2[3];
int num;
int i;
while (fgets(buf, sizeof(buf), stdin))
{
buf[strlen(buf)-1 ...
i think my code is correct.
i tested it many cases that i saw in this forum.
but, i got WA.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
char buf[880];
char tmp[2];
char tmp2[3];
int num;
int i;
while (fgets(buf, sizeof(buf), stdin))
{
buf[strlen(buf)-1 ...