Search found 9 matches

by Syed Mubashshir Husain
Sun Oct 19, 2003 7:54 am
Forum: Volume 101 (10100-10199)
Topic: 10192 - Vacation
Replies: 58
Views: 14494

10192

hello

WanBa said
"
father: abca
mother: abda
according norm DP , the answer is 3.,however,the true is TWO. "

It is totally wrong. I accpeted 10192.
by Syed Mubashshir Husain
Thu Aug 14, 2003 8:23 am
Forum: Algorithms
Topic: Permutation of a string
Replies: 9
Views: 3039

Permutation of a string

Hello everyone

Is there any algo to permutate a string?
It must be efficient.

please give me the algo or site where i can get me requirement.


-------
SMH
by Syed Mubashshir Husain
Sun Apr 27, 2003 12:04 pm
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 31818

482 RTE

Hi, I got RTE in this problem. My code (partial) given below. scanf("%ld",&ar[0]); gets(ch); i = 1; t = 0; t = strtok(ch," "); ar = atol(t); i++; while(t != NULL) { t = strtok(NULL," "); if(t == NULL) break; ar = atol(t); i++; } or scanf("%ld",&ar[0]); gets(ch); i = 1; t = 0; p = 0; l = strlen(ch); ...
by Syed Mubashshir Husain
Wed Apr 16, 2003 11:01 am
Forum: Volume 104 (10400-10499)
Topic: 10433 - Automorphic Numbers
Replies: 41
Views: 23374

Plz help in 10433

Hi
Few days ago I got AC 10106. So, I do string multiplication for 10433.
But got TLE.

But Whyyyyyyyyyyyyyyyyyyy!

---
SMH
by Syed Mubashshir Husain
Wed Apr 09, 2003 9:24 am
Forum: C
Topic: Problem using floating number in a structure
Replies: 3
Views: 2040

I got problem from following code.

The correct code is :

#include<stdio.h>

struct tag
{
double x;
} ar[12];

int main()
{
long i;
for(i = 0; i < 2; i++)
{
scanf("%lf",&ar.x);
}
return 0;
}
by Syed Mubashshir Husain
Wed Apr 09, 2003 7:54 am
Forum: Volume 101 (10100-10199)
Topic: 10106 - Product
Replies: 98
Views: 27376

Take the values in string. And multiply it in string multiplication.

---
SMH
by Syed Mubashshir Husain
Tue Apr 08, 2003 12:16 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39404

The code is so complicated. Think it so easily.
The ratio

if(a > b) b / a;
else a / b;
by Syed Mubashshir Husain
Tue Apr 08, 2003 9:17 am
Forum: C
Topic: Problem using floating number in a structure
Replies: 3
Views: 2040

Problem using floating number in a structure

I face a problem in using floating number.

#include <stdio.h>

struct tag
{
double a;
}x[10];

int main ()
{
int i;
for (i = 0; i < 2; ++i) scanf ("%f", &x.a);
return 0;
}

---
SMH :oops:
by Syed Mubashshir Husain
Mon Apr 07, 2003 7:51 am
Forum: Volume 101 (10100-10199)
Topic: 10191 - Longest Nap
Replies: 75
Views: 23632

10191 input and Output

I got WA. Please give me input and output.

SMH

Go to advanced search