It doesn't seem a difficult problem, though i keep getting TLE, I don't know any other way except brute force to solve this problem, here's my C code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 15
#define SIZE 100001
int compare_strings(char* s1, char* s2)
{
int count ...
Search found 5 matches
- Thu Jun 10, 2010 8:30 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10146 - Dictionary
- Replies: 8
- Views: 5258
- Wed May 26, 2010 8:54 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11483 - Code Creator
- Replies: 16
- Views: 8015
Re: 11483 - Code Creator
I solved it in C after a few WA, in fact the problem description is wrong since it says to use the following format:
#include<string.h>
#include<stdio.h>
int main()
{
<case specific lines>
printf(“\n”);
return 0;
}
but is should be:
#include<string.h>
#include<stdio.h>
int main()
{
<case specific ...
#include<string.h>
#include<stdio.h>
int main()
{
<case specific lines>
printf(“\n”);
return 0;
}
but is should be:
#include<string.h>
#include<stdio.h>
int main()
{
<case specific ...
- Sun May 23, 2010 3:56 am
- Forum: Volume 4 (400-499)
- Topic: 496 - Simply Subsets
- Replies: 48
- Views: 14707
Re: Help me with 496
Please someone help me!! I'm really frustrated with this problem, I tried all kind of input and it seems to work fine but still I get WA, even considering duplicate numbers in the same set! I post my code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUF 500
#define equal 1 ...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUF 500
#define equal 1 ...
- Wed May 19, 2010 11:25 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11787 - Numeral Hieroglyphs
- Replies: 6
- Views: 4766
11787 - Numeral Hieroglyphs
Is there any critical input for this problem? It seems quite easy but I keep getting WA
My program passes the sample output, I don't know why I get WA, here's my C code
edit: I got ACC, I made a silly mistake 

My program passes the sample output, I don't know why I get WA, here's my C code
Code: Select all
removed after AC

- Sun May 16, 2010 11:45 pm
- Forum: Volume 4 (400-499)
- Topic: 492 - Pig-Latin
- Replies: 213
- Views: 49407
Re: why WA?(492)piglatin
Hi everyone, for those who get RTE, I got ACC by using a char array of 10000000 and fgets() for taking input