Search found 12 matches

by shahidul_brur
Thu Sep 13, 2018 12:24 pm
Forum: Volume 120 (12000-12099)
Topic: 12069 - Robots inside the Labyrinth
Replies: 1
Views: 668

Re: 12069 - Robots inside the Labyrinth

Getting WA. Here is my code: /*==============================================*\ ID: shahidul_brur Name: Md. Shahidul Islam Study: CSE, BRUR Address: Rangpur, Bangladesh mail: shahidul.cse.brur@gmail.com FB : fb.com/shahidul.brur Blog: shahidul-brur.blogspot.com(in Bengali), shahidul-brur-en.blogspot...
by shahidul_brur
Fri Dec 02, 2016 8:17 pm
Forum: Volume 106 (10600-10699)
Topic: 10679 - I Love Strings!!
Replies: 101
Views: 46740

Re: 10679 - I Love Strings!!

Why this solution is getting Accepted ? #include <stdio.h> #include<string.h> int main() { int t,q,i,j,k,len,Y,m,L; char ms[100099], ss[1099],p[1099]; scanf("%d",&t); while(t--) { scanf("%s",&ms); scanf("%d",&q); len=strlen(ms); while(q--) { scanf("%s",&ss); L=strlen(ss); for(i=0;i<L;i++) p[i]=ms[i]...
by shahidul_brur
Sat Sep 10, 2016 6:55 pm
Forum: Volume 117 (11700-11799)
Topic: 11787 - Numeral Hieroglyphs
Replies: 6
Views: 2901

Re: 11787 - Numeral Hieroglyphs

@Zerin Xahan,

Add b[l] = '\0' after this loop:

Code: Select all

for(k=0,p=l-1;k<l;k++,p--)
{
    b[k]=a[p];
}

And replace

Code: Select all

if(a[i]!=a[i-1])count=0;
to

Code: Select all

if(i>0 && a[i]!=a[i-1])count=0;
You will get AC ! :)
by shahidul_brur
Wed Sep 07, 2016 9:19 am
Forum: Bugs and suggestions
Topic: Please ban this guy
Replies: 3
Views: 2680

Please ban this guy

This guy is spamming, see his posts. memberlist.php?mode=viewprofile&u=142605
Please ban him.
by shahidul_brur
Wed May 04, 2016 4:17 pm
Forum: Volume 129 (12900-12999)
Topic: 12998 - Tree Weights
Replies: 1
Views: 1563

Re: 12998 - Tree Weights

How to avoid Time Limit?
Any hints/idea to solve it?
by shahidul_brur
Fri Jan 01, 2016 10:21 am
Forum: Volume 130 (13000-13099)
Topic: 13035 - Another Combination Problem
Replies: 0
Views: 1158

13035 - Another Combination Problem

Use this thread to discuss this problem.
by shahidul_brur
Tue Nov 24, 2015 5:43 am
Forum: Volume 119 (11900-11999)
Topic: 11975 - Tele-loto
Replies: 1
Views: 3080

Re: 11975 - Tele-loto

For problem 11975, can anybody please explain, why for the input: 1 75 2 1 16 31 46 61 2 17 32 47 62 3 18 33 48 63 4 19 34 49 64 5 20 35 50 65 6 21 36 51 66 7 22 37 52 67 8 23 38 53 68 9 24 39 54 69 10 25 40 55 70 11 26 41 56 71 12 27 42 57 72 13 28 43 58 73 14 29 44 59 74 15 30 45 60 75 2 3 7 11 6 ...
by shahidul_brur
Wed Oct 07, 2015 10:34 am
Forum: Volume 115 (11500-11599)
Topic: 11576 - Scrolling Sign
Replies: 9
Views: 4531

Re: 11576 - Scrolling Sign

Can some one please explain, how the output is 72 for the following input ? 1 18 4 IRAJXBXYOQPAQOJTWD WHFVJCCQGFYPSTDFZB EHCKKECYBTVHQEBGCZ LGWESVDETLHXJKKDMC As between the 1st and 2nd string, W is matched, here need 17 scroll. And all the others need 18 scroll each. So, output should be 17 + 18 + ...
by shahidul_brur
Fri Oct 02, 2015 10:31 am
Forum: Volume 108 (10800-10899)
Topic: 10803 - Thunder Mountain
Replies: 47
Views: 22946

Re: 10803 - Thunder Mountain

Read the problem ddescription carefully. It says,
Put an
empty line after each test case.
But you are putting an empty line only between cases.
by shahidul_brur
Mon Sep 21, 2015 5:53 pm
Forum: Volume 4 (400-499)
Topic: 423 - MPI Maelstrom
Replies: 17
Views: 9126

Re: 423 - MPI Maelstrom

I am not understanding, how the sample output is 35 :(
It seem to be 45, what I understood !
it is 10+10+20+5 = 45 ( 1 -> 5 -> 4 -> 2 -> 3 ).
I am not understanding, how it can be 35 ?

See my attached image.....
by shahidul_brur
Mon Sep 21, 2015 9:15 am
Forum: Volume 5 (500-599)
Topic: 558 - Wormholes
Replies: 30
Views: 14133

Re: 558 - Wormholes

@TurtleShip , Thanks for your reply :)
I have noticed that almost every OJ including UVa support

Code: Select all

#include<bits/stdc++.h>
And I have never face any problem with it. Also, this code also got Accepted, as well, with

Code: Select all

#include<bits/stdc++.h>
by shahidul_brur
Sun Sep 20, 2015 12:39 pm
Forum: Volume 5 (500-599)
Topic: 558 - Wormholes
Replies: 30
Views: 14133

Re: 558 - Wormholes

Mistake is fixed !

Go to advanced search