Search found 2 matches

by rusho_eu
Thu Nov 05, 2009 10:34 pm
Forum: Volume 114 (11400-11499)
Topic: 11417 - GCD
Replies: 11
Views: 8249

Re: 11417 - GCD

I am new coder and trying to learn. Can any 1 help me?
I am got wa in the problem 11417 - GCD . I don't know what is the error.
here is my code..



#include<stdio.h>


int gcd( int a, int b )
{
if( b == 0 ) return a;
else gcd( b, a % b );
}


int main()
{
int i,N,j;
long G=0;

while(scanf("%d ...
by rusho_eu
Thu Nov 05, 2009 10:24 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 101941

Re: 10035 - Primary Arithmetic

I am a new programmer. Can any 1 help me ? I am getting wa in the problem 10035 -Primary Arithmetic.
Here is my code.

#include<stdio.h>
#include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
using namespace std;


int ar1[11]={0},ar2[11]={0},h;

void arr1(long long x ...

Go to advanced search