Search found 23 matches

by shipu_a
Tue Jul 29, 2014 10:47 pm
Forum: Volume 1 (100-199)
Topic: 140 - Bandwidth
Replies: 49
Views: 7806

RE: 140 - Bandwidth

Try this

Code: Select all

Z:A
by shipu_a
Sat Apr 27, 2013 12:37 am
Forum: Volume 126 (12600-12699)
Topic: 12619 - Just Make A Wish
Replies: 5
Views: 2369

Re: 12619 - Just Make A Wish

Sample Input: 6 9 1000000 1000000 1000000 1000000 1000000 1000000 -100 -100 -10000 6 1000000 98 -2 -2 -7 -70 5 99999 99999 99999 99999 99999 5 100 -25 200 -40 -5 3 2 2 2 8 100 9 -30 20 -60 90 -60 -5 Sample Output: Case 1: 6689 Case 2: 604 Case 3: 790 Case 4: 39 Case 5: 9 Case 6: 105 thnkx alim........
by shipu_a
Wed Apr 10, 2013 2:07 am
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 25054

514 rails some test case

input:

Code: Select all

10
1 2 5 4 6 3 8 9 10 7
7 10 9 8 3 6 4 5 2 1
0
3
1 3 2
2 3 1
0
6
4 6 5 3 2 1
5 4 3 1 2 6
6 5 4 2 3 1
0
0
output:

Code: Select all

Yes
No

Yes
Yes

Yes
No
No
by shipu_a
Tue Apr 09, 2013 4:09 pm
Forum: Volume 106 (10600-10699)
Topic: 10606 - Opening Doors
Replies: 10
Views: 5707

10606 - Opening Doors

TLE plz help......... :oops: import java.math.BigInteger; import java.util.Scanner; class SquareRoot { BigInteger bigsqrt(BigInteger in) { BigInteger x,y=in,div=new BigInteger("2"); do { x=y; y=x.add(in.divide(x)).divide(div); }while(x.compareTo(y)!=0); return y; } } public class Main { public stati...
by shipu_a
Tue Apr 02, 2013 12:53 am
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 11209

Re: WA-537-Artificial Intelligence?

input: 3 A light-bulb yields P=0W and the voltage is U=220V. Compute the current, please. I light-bulb yields P=1W and the voltage is U=2V. Compute the current, please. A light-bulb yields I=-1A and the voltage is U=-2V. Compute the current, please. output: Problem #1 I=0.00A Problem #2 I=0.50A Prob...
by shipu_a
Tue Apr 02, 2013 12:46 am
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 11209

Re: WA-537-Artificial Intelligence?

finally ac..........
by shipu_a
Tue Apr 02, 2013 12:00 am
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 11209

Re: WA-537-Artificial Intelligence?

Input: 1 A light-bulb yields P=-1W and the voltage is U=2V. Compute the current, please. AC output: Problem #1 I=-0.50A may be it's not correct answer......... again wa.......... :( :cry: :oops: /************************************* ******** Team : BUBT_HIDDEN ********** **************************...
by shipu_a
Mon Apr 01, 2013 11:36 pm
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 11209

Re: WA-537-Artificial Intelligence?

Input: 1 A light-bulb yields P=0W and the voltage is U=220V. Compute the current, please. AC output: Problem #1 I=0.00A again wa............. /************************************* ******** Team : BUBT_HIDDEN ********** ************************************** *********** Shipu Ahamed ************* *...
by shipu_a
Mon Apr 01, 2013 11:19 pm
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 11209

WA-537-Artificial Intelligence?

wa plz help me................ :oops: :roll: /************************************* ******** Team : BUBT_HIDDEN ********** ************************************** *********** Shipu Ahamed ************* *** http://shipuahamed.blogspot.com ** *************************************/ #include<algorithm> #...
by shipu_a
Thu Mar 28, 2013 7:27 pm
Forum: Volume 2 (200-299)
Topic: 294 - Divisors
Replies: 91
Views: 24101

294 please help me

input

Code: Select all

5
1 0
1 1
2 2
3 3
12 18
output

Code: Select all

Between 1 and 1, 0 has a maximum of 2 divisors.
Between 1 and 1, 1 has a maximum of 1 divisors.
Between 2 and 2, 2 has a maximum of 2 divisors.
Between 3 and 3, 3 has a maximum of 2 divisors.
Between 12 and 18, 12 has a maximum of 6 divisors.
by shipu_a
Wed Mar 27, 2013 5:39 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37509

Re: 10062 - Tell Me the Frequencies!

alimbubt wrote:
shipu_a wrote:WA................anyone help me plz......... :( :oops:

Code: Select all

AC and removed code.
Don't print the new line after last output.....
thnx..............alim
by shipu_a
Wed Mar 27, 2013 5:15 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 37509

10062 - Tell Me the Frequencies!

WA................anyone help me plz......... :( :oops: /************************************* ******** Team : BUBT_HIDDEN ********** ************************************** *********** Shipu Ahamed ************* *************************************/ #include<algorithm> #include<iostream> #include<i...
by shipu_a
Mon Mar 04, 2013 12:49 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 30104

Re: 10004-Bicoloring

Getting WA.........plz help... :oops: :roll: anyone give me some test case.........plz.... :( #include<iostream> #include<algorithm> #include<sstream> #include<fstream> #include<utility> #include<cstdlib> #include<cstring> #include<string> #include<bitset> #include<vector> #include<cstdio> #include<...
by shipu_a
Fri Feb 15, 2013 9:46 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 29233

371 - Ackermann Functions...Why TLE

TLE plz help..................... :( :oops: #include<iostream> #include<algorithm> #include<sstream> #include<fstream> #include<utility> #include<cstdlib> #include<cstring> #include<string> #include<bitset> #include<vector> #include<cstdio> #include<cctype> #include<cmath> #include<queue> #include<d...
by shipu_a
Fri Feb 15, 2013 8:57 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 26321

Re: 492 why RE?

lbv wrote:
shipu_a wrote: now TLE
Did you read the second comment (the one about strlen)?

You can try changing this:

Code: Select all

          for(int i=0;i<strlen(s);i++)
for something like this:

Code: Select all

          for(int i=0, len = strlen(s);i<len;i++)
Thank you so much...................

Go to advanced search