Search found 26 matches: 10338
Searched query: 10338
- Tue Apr 08, 2014 9:12 am
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: why i am getting wrong answer for 10338 no problem
Replying to follow the thread.
- Tue Apr 08, 2014 9:10 am
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
plamplam,
Thanks for the great test cases.
Thanks for the great test cases.
- Tue Jun 11, 2013 12:49 am
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: why i am getting wrong answer for 10338 no problem
Your code is producing a RE on the sample input. 20! will fit in long long. Also see:
http://www.algorithmist.com/index.php/BigNum
http://www.algorithmist.com/index.php/BigNum
- Mon Jun 10, 2013 1:34 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: why i am getting wrong answer for 10338 no problem
http://acm.uva.es/board/viewtopic.php?f=20&t=1353
Search the board first using the search option located at top-right. Don't create a new thread for a problem that already exists. Make your post in an existing thread.
i am not getting perfect answer .
if u see my code carefully then u find my ...
Search the board first using the search option located at top-right. Don't create a new thread for a problem that already exists. Make your post in an existing thread.
i am not getting perfect answer .
if u see my code carefully then u find my ...
- Sun Jun 09, 2013 4:52 am
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: why i am getting wrong answer for 10338 no problem
http://acm.uva.es/board/viewtopic.php?f=20&t=1353
Search the board first using the search option located at top-right. Don't create a new thread for a problem that already exists. Make your post in an existing thread.
Search the board first using the search option located at top-right. Don't create a new thread for a problem that already exists. Make your post in an existing thread.
- Sat Jun 08, 2013 12:17 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
why i am getting wrong answer for 10338 no problem
here is my code:
#include<stdio.h>
unsigned long long int binnas(int i)
{
unsigned long long int n=1;
for(;i>1;) n*=i--;
return n;
}
int main()
{
unsigned long long int n,r;
int i,j,x,count,in,in1;
char arr[21];
in1=1;
scanf("%d",&in);
getchar();
while(in1++<=in){
for(i=0;arr[i-1]!='\n ...
#include<stdio.h>
unsigned long long int binnas(int i)
{
unsigned long long int n=1;
for(;i>1;) n*=i--;
return n;
}
int main()
{
unsigned long long int n,r;
int i,j,x,count,in,in1;
char arr[21];
in1=1;
scanf("%d",&in);
getchar();
while(in1++<=in){
for(i=0;arr[i-1]!='\n ...
- Thu Jun 23, 2011 6:34 am
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
Well well, look what we have here. The problem description is actually wrong, although the problem itself is not. It says that
"The number of arrangements will always be able to fit into an unsigned long int. Note that 12! is the largest factorial that can fit into an unsigned long int." Notice that ...
"The number of arrangements will always be able to fit into an unsigned long int. Note that 12! is the largest factorial that can fit into an unsigned long int." Notice that ...
- Mon Jan 05, 2009 6:20 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
i have considered k=0;
but still it is WA
here is the code:
#include<stdio.h>
#include<string.h>
#include<math.h>
char line[100];
long same[100];
long long ans,fact;
int i,j;
long long factorial[22]={1,2,6,24,120,720,5040,4320,362880,3628800LL,39916800LL,479001600LL,6227020800LL ...
but still it is WA
here is the code:
#include<stdio.h>
#include<string.h>
#include<math.h>
char line[100];
long same[100];
long long ans,fact;
int i,j;
long long factorial[22]={1,2,6,24,120,720,5040,4320,362880,3628800LL,39916800LL,479001600LL,6227020800LL ...
- Mon Jan 05, 2009 4:41 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
I don't fully understand your code.. but, what if k == 0 ??abid_iut wrote:I have changed the code accordingly
But now it is WA
pls anyone help
here is the code:
- Sun Jan 04, 2009 6:18 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
I have changed the code accordingly
But now it is WA
pls anyone help
here is the code:
But now it is WA
pls anyone help
here is the code:
Code: Select all
Removed
- Sun Jan 04, 2009 5:57 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
2432902008176640000 is a representation of 32 bit integerabid_iut wrote:getting CE!!
I thought unsigned long long can handle 20!
is it? or any other problem
where should I change
You should code it like 2432902008176640000LL or 2432902008176640000ULL
- Sun Jan 04, 2009 5:45 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
getting CE!!
I thought unsigned long long can handle 20!
is it? or any other problem
where should I change
here is the code:
pls help 
I thought unsigned long long can handle 20!
is it? or any other problem
where should I change
here is the code:
Code: Select all
Removed

- Mon Jul 28, 2008 1:05 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
Re: 10338 - Mischievous Children
I don't know why I am WA???
#include<stdio.h>
#include<string.h>
int main()
{
char st[21],a[21];
int n,i,j,k,r,len,num[21],c=0;
bool found,enter;
scanf("%d",&n);getchar();
while(n--)
{
c++;
gets(st);
len = strlen(st);j=0;k=1;
for(i=0;st[i];i++)
{
if(i>0)
{
found=0;
for(j=0;j<k;j ...
#include<stdio.h>
#include<string.h>
int main()
{
char st[21],a[21];
int n,i,j,k,r,len,num[21],c=0;
bool found,enter;
scanf("%d",&n);getchar();
while(n--)
{
c++;
gets(st);
len = strlen(st);j=0;k=1;
for(i=0;st[i];i++)
{
if(i>0)
{
found=0;
for(j=0;j<k;j ...
- Sat Jul 28, 2007 3:33 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31774
RTE 10338[Mischievous Children]
I am facing RTE. Can anybody help me? Is my algorithm is correct for solving this problem? Here is my code
Code: Select all
cut after AC
- Wed Jul 25, 2007 4:37 pm
- Forum: Off topic (General chit-chat)
- Topic: if u need specific type problem...
- Replies: 1
- Views: 28368