Search found 10 matches

by magic_guy
Tue Aug 31, 2004 12:12 pm
Forum: Volume 105 (10500-10599)
Topic: 10523 - Very Easy !!!
Replies: 63
Views: 32294

#include <stdio.h>
#include <stdlib.h>
#define MAXDIGITS 1000 /* maximum length bignum */

#define PLUS 1 /* positive sign bit */
#define MINUS -1 /* negative sign bit */

typedef struct {
char digits[MAXDIGITS]; /* represent the number */
int signbit; /* 1 if positive, -1 if negative ...
by magic_guy
Mon Aug 30, 2004 9:08 am
Forum: Volume 105 (10500-10599)
Topic: 10523 - Very Easy !!!
Replies: 63
Views: 32294

10523

#include <stdio.h>
#include <stdlib.h>
#define MAXDIGITS 100 /* maximum length bignum */

#define PLUS 1 /* positive sign bit */
#define MINUS -1 /* negative sign bit */

typedef struct {
char digits[MAXDIGITS]; /* represent the number */
int signbit; /* 1 if positive, -1 if negative ...
by magic_guy
Mon Aug 30, 2004 4:43 am
Forum: Algorithms
Topic: big numbers
Replies: 4
Views: 2691

these are almost all the bignumber operations except big number mod(%) operation
by magic_guy
Mon Aug 30, 2004 4:38 am
Forum: Algorithms
Topic: big numbers
Replies: 4
Views: 2691

thank you very much,Ghust_omega
:wink:
by magic_guy
Sun Aug 29, 2004 1:58 pm
Forum: Volume 104 (10400-10499)
Topic: 10495 - Conic Distance
Replies: 16
Views: 7879

#include "string.h"
#include "math.h"
#include "stdio.h"


int main(int argc, char* argv[])
{
double r,h,d1, A1, d2, A2,c ,temp,res;
int i,j,k;
while(scanf("%lf%lf%lf%lf%lf%lf",&r,&h,&d1,&A1,&d2,&A2)!=EOF)
{
if(d1>d2)
{
temp=d1;
d1=d2;
d2=temp;
}
c=2*d1*d1*(1-cos(fabs(A2-A1)*2*acos(-1)*r ...
by magic_guy
Sun Aug 29, 2004 10:11 am
Forum: Volume 104 (10400-10499)
Topic: 10495 - Conic Distance
Replies: 16
Views: 7879

anyone may help with this problem? :cry:
by magic_guy
Sat Aug 28, 2004 10:17 am
Forum: Algorithms
Topic: big numbers
Replies: 3
Views: 1622

addition and subtraction are easy,but multiplication and division are quite difficult :cry:
by magic_guy
Sat Aug 28, 2004 10:07 am
Forum: Volume 104 (10400-10499)
Topic: 10495 - Conic Distance
Replies: 16
Views: 7879

10495!!!!!!!

what would the angle |A1-A2| be if the cone is unrolled ? :-?
by magic_guy
Sat Aug 28, 2004 8:27 am
Forum: Algorithms
Topic: big numbers
Replies: 3
Views: 1622

big numbers

hi friends

I am green and trying to solve some big number problems. but i am always getting WA.Because my algorithm is not good.
can any body help me about this.I want some perfect big number algrithms such as multiplication ,division or mod operation :oops:
by magic_guy
Sat Aug 28, 2004 8:27 am
Forum: Algorithms
Topic: big numbers
Replies: 4
Views: 2691

big numbers

hi friends

I am trying to solve some big number problems. but i am always getting WA.Because my algorithm is not good.
can any body help me about this.I want some perfect big number algrithms such as multiplication ,division or mod operation :oops:

Go to advanced search