if i solve any problem by BIGint class then i have to send it with the class to the judge.
will any one tell me that in a real time contest, how i can afford to solve a problem using BIGint class of mr. sumon ( i appritiate him as i like the class) .
so, if i hv to write in the contest time the how ...
Search found 10 matches
- Sun Sep 24, 2006 9:32 pm
- Forum: Algorithms
- Topic: Arbitrary Precision Arithmatic : BigInteger Algorithm
- Replies: 9
- Views: 8519
- Sun Sep 17, 2006 9:24 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10703 - Free spots
- Replies: 26
- Views: 12205
- Fri Sep 15, 2006 12:15 am
- Forum: Volume 105 (10500-10599)
- Topic: 10550 - Combination Lock
- Replies: 24
- Views: 27011
- Tue Sep 12, 2006 6:24 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10408 - Farey sequences
- Replies: 9
- Views: 7100
Re: some clue
as kmhasan written,
You can add "mediants" [(numerator of leftnum+numerator of right num)/(denominator of leftnum+denominator of rightnum)] in between the numbers as long as the denominator is <= N. :wink:
0/1,1/1
0/1,1/2,1/1
0/1,1/3,1/2,1/1
0/1,1/3,1/2,2/3,1/1
and so on....
i understood ...
You can add "mediants" [(numerator of leftnum+numerator of right num)/(denominator of leftnum+denominator of rightnum)] in between the numbers as long as the denominator is <= N. :wink:
0/1,1/1
0/1,1/2,1/1
0/1,1/3,1/2,1/1
0/1,1/3,1/2,2/3,1/1
and so on....
i understood ...
- Sat Sep 02, 2006 8:54 am
- Forum: Volume 5 (500-599)
- Topic: 574 - Sum It Up
- Replies: 46
- Views: 22454
- Sun Aug 27, 2006 12:31 pm
- Forum: Volume 5 (500-599)
- Topic: 574 - Sum It Up
- Replies: 46
- Views: 22454
getting wa in 574
removed after got acc
- Sun Aug 27, 2006 12:23 pm
- Forum: Volume 5 (500-599)
- Topic: 574 - Sum It Up
- Replies: 46
- Views: 22454
574(sum it up) wA
hi, i am getting wa in 574. plz help me :::
here my code:
:
#include<stdio.h>
#include<math.h>
#define max_sz 100
int in[max_sz],pre_sol[max_sz],none,pre_k;
void construct_candidates(int a[],int k,int n,int c[],int *ncandidates){
int i;
*ncandidates=0;
for(i=a[k-1]+1;i<=n;i++)
c ...
here my code:
:
#include<stdio.h>
#include<math.h>
#define max_sz 100
int in[max_sz],pre_sol[max_sz],none,pre_k;
void construct_candidates(int a[],int k,int n,int c[],int *ncandidates){
int i;
*ncandidates=0;
for(i=a[k-1]+1;i<=n;i++)
c ...
- Mon Aug 21, 2006 1:39 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62397
- Mon Aug 21, 2006 12:32 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62397
- Sun Aug 20, 2006 11:21 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10930 - A-Sequence
- Replies: 102
- Views: 62397
10930 - A-Sequence
i am getting wa in 10930. i saw all the post in the board but getting the same result. hope u will help me to get it AC.
here is my code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define sz 30010
int comp_fun(const void *a, const void *b){
int *x=(int*) a;
int *y =( int* ) b ...
here is my code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define sz 30010
int comp_fun(const void *a, const void *b){
int *x=(int*) a;
int *y =( int* ) b ...