Search found 7 matches

by bayzid
Wed Dec 10, 2003 12:10 pm
Forum: Volume 100 (10000-10099)
Topic: 10042 - Smith Numbers
Replies: 75
Views: 23931

[c] Firstly sum up all the digit of the number then sum up the factorizing number.if sum of each digit is equal to the sum of factorizing number then the number is called smith number. sample input: ------------- 20 4937774 4997775 5445454 4648787 4897987 5789798 9554564 8545644 7564545 8798798 6787...
by bayzid
Tue Nov 11, 2003 4:57 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 22002

10018 at last ac

thank everybody to give infomation.at last i ac the problem
by bayzid
Mon Nov 10, 2003 2:14 am
Forum: Volume 101 (10100-10199)
Topic: 10106 - Product
Replies: 98
Views: 28132

10106 WA HELP ME

my code is below.every thing is ok.but judge reply wa.i m frustated.help me about this problem /* @JUDGE_ID: xxxxxx 10106 C++ */ #include<string.h> #include<stdio.h> #include<stdlib.h> #define MAX 10000 static char x[MAX],s[MAX],z[MAX]; void mul () { int p,q,r,l,m,tag,u,tag1,i,t,j,k,tag2=0; for(r=0;...
by bayzid
Mon Nov 10, 2003 12:05 am
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 30696

help me about 10515 h to get input two digit of n at a time

help me how to get input two digit at a time in the below of code.
because input is 10^101.i think this is not possible to handle in array.


while((c=getchar())!=' '&&c!='\n'&&c!='\t') n=c-48;
by bayzid
Tue Nov 04, 2003 9:05 am
Forum: Volume 100 (10000-10099)
Topic: 10025 - The ? 1 ? 2 ? ... ? n = k problem
Replies: 42
Views: 12148

10025 why wrong ans????

I think this program is correct but judge reply wrong ans.plz help me? /* @JUDGE_ID: xxxxxx 10025 C++ */ #include<stdio.h> #include<string.h> #include<math.h> #include<conio.h> main() { long double i,k,m; while(scanf("%Lf",&i)==1) { if(i<0) i=-i; m=ceil(sqrt(i*2)); k=fmod((m*(m+1)/2-i),2); if(k) pri...
by bayzid
Tue Nov 04, 2003 8:56 am
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 40970

10424 why wrong anz plz help me

/* @JUDGE_ID: xxxxxx 10424 C++ */ I think this program is correct but judge reply wrong ans.anyone help me? #include<stdio.h> #include<string.h> #include<math.h> main() { char get1[26],c; char get2[26]; while(scanf("%s%s",get1,get2)!=EOF) { int x[26],l=0,l1=0; for(int i=0;i<26;i++) x =0; for(i=0;i<s...
by bayzid
Tue Nov 04, 2003 8:20 am
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 30696

10515 why wrong ans plz help me

#include<stdio.h> void main() { long int m,n; char c; int l,p,a2[4]={6,2,4,8},a3[4]={1,3,9,7},a4[2]={6,4},a7[4]={1,7,9,3},a8[4]={6,8,4,2},a9[2]={1,9}; int mod2,mod4; while(2) { while((c=getchar())!=' '&&c!='\n'&&c!='\t') m=c-48; while((c=getchar())!=' '&&c!='\n'&&c!='\t') n=c-48; if(m==0&&n==0) brea...

Go to advanced search