Search found 39 matches

by alimbubt
Sat Apr 27, 2013 9:03 pm
Forum: Volume 125 (12500-12599)
Topic: 12532 - Interval Product
Replies: 8
Views: 2175

Re: 12532 - Interval Product TLE

Sample Input:

Code: Select all

10 15
100 100 98 87 16 -99 12 77 12 0
C 3 -19
C 4 99
C 8 0
P 2 5
P 5 9
P 1 3
C 6 -12
C 1 -1
P 4 4
P 10 10
P 1 10
P 4 7
P 5 8
P 3 9
P 2 4
Sample Output:

Code: Select all

-0-+00-00-
by alimbubt
Fri Apr 26, 2013 11:43 pm
Forum: Volume 126 (12600-12699)
Topic: 12619 - Just Make A Wish
Replies: 5
Views: 2343

12619 - Just Make A Wish

Sample Input:

Code: Select all

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:

Code: Select all

Case 1: 6689
Case 2: 604
Case 3: 790
Case 4: 39
Case 5: 9
Case 6: 105
by alimbubt
Tue Apr 16, 2013 10:18 pm
Forum: Volume 5 (500-599)
Topic: 516 - Prime Land
Replies: 23
Views: 6546

Re: 516

Input:

Code: Select all

12 3 14 2
2 3 7 3
8 3 9 3
19 4
12 2 6 3
18 5
100 2
105 2
15 2 18 2
0
Output:

Code: Select all

338687 1
211 1 13 1
751 1 71 1 7 1
181 1 5 1 3 2 2 4
1637 1 19 1
2711 1 41 1 17 1
101 1 11 1 3 2
53 1 13 1 2 4
271 1 269 1
by alimbubt
Mon Apr 08, 2013 4:19 am
Forum: Volume 114 (11400-11499)
Topic: 11466 - Largest Prime Divisor
Replies: 29
Views: 15625

Re: 11466 - Largest Prime Divisor

For this problem, Some important notes are... 1) What will happen when there exists less than 2 prime divisors. 2) What will happen when the input is less than 0. Some Input-Output: Input: 1000 20 32 1 -1 -10 61536575712 8172385155 90090 12 199900 -26356 -32 8748234 23462482 23457826407 234872648001...
by alimbubt
Sun Apr 07, 2013 10:58 pm
Forum: Volume 103 (10300-10399)
Topic: 10392 - Factoring Large Numbers
Replies: 14
Views: 7743

Re: 10392 - Factoring Large Numbers

Sample Input- Output: Input: 1000007 10000009 2387468238648623864 761253475173152355522 77777777777812222222222 1000000000000223657 237424528 23482397493264962346826 3245986234596236523695665 2734823482584528458248 235429469249269462946926496 3593057032750375730570 Output: 29 34483 23 434783 2 2 2 6...
by alimbubt
Thu Apr 04, 2013 5:40 pm
Forum: Volume 125 (12500-12599)
Topic: 12542 - Prime Substring
Replies: 4
Views: 1137

12542 - Prime Substring

Input: 144444444444444442 872368687683485 20983499862347 2347878234 3847567523745 10007893476 999999990007 2378547666666666666666666666237424275475 12345678901234567890 82137482644656 4654451154112115253235221212522322325232035235232323253 2556463416131163143434 51656154531521 45287686 3485738563588...
by alimbubt
Wed Apr 03, 2013 5:08 pm
Forum: Volume 9 (900-999)
Topic: 993 - Product of digits
Replies: 19
Views: 12305

Re: 993 - Product of digits

Nice Problem.... :)
Sample Input and Output:
Input:

Code: Select all

20
0
1
2
7
9
10
48
96
18
100000000
7523475
643
156236
19
23
6746
59049
387420489
430467221
373248
Output:

Code: Select all

0
1
2
7
9
25
68
268
29
45555555588
-1
-1
-1
-1
-1
-1
99999
999999999
-1
888999
by alimbubt
Wed Mar 27, 2013 5:25 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36686

Re: 10062 - Tell Me the Frequencies!

WA................anyone help me plz......... :( :oops: /************************************* ******** Team : BUBT_HIDDEN ********** ************************************** *********** Shipu Ahamed ************* *************************************/ #include<algorithm> #include<iostream> #include<...
by alimbubt
Wed Mar 27, 2013 3:52 pm
Forum: Volume 3 (300-399)
Topic: 353 - Pesky Palindromes
Replies: 43
Views: 12229

Re: 353 --- Nice Tests...

Input: alim bubt illusion acmicpc worldfinal mirpur abdulalim alimbubt cseuuu aaaaaaa bbbbbbb aaaaaaaaaammmmmmmmmmmmmmmaaaaaaaaaa sssssssguggudfgighi djsfdsgfjggjsdfjgdsjkg iuwetrewuuuuuiweughsalfujgkf iutwrigmdlbbckbj newkeyboard dffdg Output: The string 'alim' contains 4 palindromes. The string 'b...
by alimbubt
Wed Mar 27, 2013 2:51 pm
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 21284

Re: 147 - Dollars

Input: 0.30 12.35 2.25 3.55 9.90 199.90 288.45 278.42 285.65 300.00 122.40 148.90 43.68 123.90 0.00 Output: 0.30 6 12.35 267166 2.25 388 3.55 1714 9.90 99998 199.90 7374160359543 288.45 131885563682391 278.42 0 285.65 121901430488365 300.00 181490736388615 122.40 196443681978 148.90 810222739797 43....
by alimbubt
Wed Mar 27, 2013 10:04 am
Forum: Volume 5 (500-599)
Topic: 562 - Dividing coins
Replies: 73
Views: 30054

Re: 562 - Dividing Coins

Input:

Code: Select all

5
5
1 2 3 4 5
6
12 45 34 67 99 121
7
1 90 110 145 222 290 500
4
2 8 10 17
5
2 5 11 13 19
Output:

Code: Select all

1
2
42
1
2
by alimbubt
Tue Mar 26, 2013 8:34 pm
Forum: Volume 126 (12600-12699)
Topic: 12602 - Nice Licence Plates
Replies: 7
Views: 1693

12602 - Nice Licence Plates

Input:

Code: Select all

10
ABC-0123
AAA-9999
FVB-7651
TGH-0001
ILL-8999
LOL-0012
ABA-0123
AMD-9786
KKK-6666
AAA-0000
Output:

Code: Select all

nice
not nice
not nice
not nice
not nice
not nice
nice
not nice
not nice
nice
by alimbubt
Tue Mar 26, 2013 2:15 pm
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 36686

Re: 10062 - Tell Me the Frequencies!

Input: alim shipu alim anjan illusion hidden infinity bubt cse 19th intake programming contest jhdf sdk sldfk sdflkh kdsjghkgkgsgf Output: 109 1 108 1 105 1 97 1 117 1 115 1 112 1 109 1 108 1 106 1 104 1 110 2 105 2 32 2 97 3 121 1 117 1 116 1 115 1 111 1 104 1 102 1 101 1 108 2 100 2 32 2 110 4 105...
by alimbubt
Tue Mar 19, 2013 9:07 am
Forum: Volume 111 (11100-11199)
Topic: 11151 - Longest Palindrome
Replies: 65
Views: 32936

Re: 11151 - Longest Palindrome

Input:

Code: Select all

10
aab
bba
alim
bubt

bnjkjkjg
hhhhhhhhhhhhhhhjjjjjjjjjjjjjjhhhhhhhhhhhhhhh
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
kjghkfuwweuibmbvnvfgjgu
bbhh
Output:

Code: Select all

2
2
1
3
0
5
44
42
10
2
by alimbubt
Fri Mar 15, 2013 6:17 pm
Forum: Volume 104 (10400-10499)
Topic: 10450 - World Cup Noise
Replies: 42
Views: 19986

Re: 10450 - World Cup Noise

Input:

Code: Select all

10
5
7
8
9
13
15
22
26
31
33
Output:

Code: Select all

Scenario #1:
13

Scenario #2:
34

Scenario #3:
55

Scenario #4:
89

Scenario #5:
610

Scenario #6:
1597

Scenario #7:
46368

Scenario #8:
317811

Scenario #9:
3524578

Scenario #10:
9227465

Go to advanced search