
Search found 36 matches
- Sun Oct 26, 2008 7:30 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11539 - Another Word Game
- Replies: 6
- Views: 3630
Re: 11539 - Another new game
Thanks for your reply. First I am going to try qsort and bsearch, if that doesn't work then I will go for trie.(I like using built-in functions
)

- Sun Oct 26, 2008 6:28 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11538 - Chess Queen
- Replies: 9
- Views: 3322
Re: 11538 - Chess Queen
You are having integer overflow. Check for n = 1000000 and m = 1000000.
- Sun Oct 26, 2008 1:23 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11539 - Another Word Game
- Replies: 6
- Views: 3630
11539 - Another Word Game
Can anybody give a look to my code, it is giving me TLE. Is it my algorithm or using STL?
Code: Select all
deleted
- Fri Sep 26, 2008 2:21 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11340 - Newspaper
- Replies: 154
- Views: 68787
Re: 11340 - Newspaper
Yeah, your process worked. I am just curious why mine didn't.
- Tue Aug 26, 2008 10:39 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11344 - The Huge One
- Replies: 16
- Views: 9497
Re: 11344 - The Huge One
The first number tells you how many test cases are present.
- Mon Aug 25, 2008 2:29 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11340 - Newspaper
- Replies: 154
- Views: 68787
Re: 11340 - Newspaper
This code is giving me WA.
- Sun Aug 24, 2008 5:15 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11340 - Newspaper
- Replies: 154
- Views: 68787
Re: 11340 - Newspaper
Can anybody help me with this problem ?
#include<stdio.h>
#include<string.h>
int val[300] ;
int c[300] ;
char s[10010] ;
int main()
{
int n , t , i , x ;
long long int res ;
char ch ;
// freopen("c:\\1.txt" , "r" , stdin) ;
scanf("%d\n" , &t) ;
while(t-- > 0)
{
scanf("%d" , &n) ;
gets ...
#include<stdio.h>
#include<string.h>
int val[300] ;
int c[300] ;
char s[10010] ;
int main()
{
int n , t , i , x ;
long long int res ;
char ch ;
// freopen("c:\\1.txt" , "r" , stdin) ;
scanf("%d\n" , &t) ;
while(t-- > 0)
{
scanf("%d" , &n) ;
gets ...
- Sun Aug 24, 2008 8:37 am
- Forum: Volume 113 (11300-11399)
- Topic: 11313 - Gourmet Games
- Replies: 5
- Views: 5822
Re: 11313 - GOURMET GAMES
Each time you are updating the variable temp, you are increasing count by 1 but it would be increased by the number of shows held, which is ns.
- Fri Aug 22, 2008 9:52 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11371 - Number Theory for Newbies
- Replies: 65
- Views: 34131
Re: 11371 - Number Theory for Newbies
Thanks a lot, there was the problem.
- Fri Aug 22, 2008 6:47 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11371 - Number Theory for Newbies
- Replies: 65
- Views: 34131
Re: 11371 - Number Theory for Newbies
Can anybody tell me why my code is giving me TLE
Code: Select all
Deleted
- Tue Aug 05, 2008 1:35 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11474 - Dying Tree
- Replies: 7
- Views: 5016
Re: 11474 - Dying Tree
Thanks a lot.
- Mon Aug 04, 2008 2:37 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11474 - Dying Tree
- Replies: 7
- Views: 5016
11474 - Dying Tree
Can anyybody help me on this problem? I have no idea why I am getting WA.
Code: Select all
removed
- Sat Jul 12, 2008 3:06 pm
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32281
Re: Prob 112. Tree Summing, I got TLE.
I tried to solve this problem with array representation and with linked list in the same process, but with linked list it gives me AC with 0.5 secs whereas with array it gives me TLE. Can anybody tell me why it happens?
Is it because of using an array of size 10^7?
Is it because of using an array of size 10^7?
- Sat Jun 14, 2008 6:53 am
- Forum: Other words
- Topic: Felix Halim's Hunting UVA Problems returns!
- Replies: 7
- Views: 7837
Re: Felix Halim's Hunting UVA Problems returns!
Sorry, I didn't get it. My old uva id doesn't work and we do not have any user id on the new site. We login with user name and password. So what is the new user id?
- Sun May 25, 2008 4:36 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11424 - GCD - Extreme (I)
- Replies: 25
- Views: 9900
Re: 11424 - GCD Extreme (I)
In my VS2005 compiler sometimes i get debug error for array overrun when the code finishes.