Click here to Skip to main content
15,896,730 members
Home / Discussions / C#
   

C#

 
AnswerRe: Enable foldering ? Pin
Colin Angus Mackay27-Apr-07 4:47
Colin Angus Mackay27-Apr-07 4:47 
GeneralRe: Enable foldering ? Pin
Ahmed R El Bohoty27-Apr-07 12:22
Ahmed R El Bohoty27-Apr-07 12:22 
GeneralRe: Enable foldering ? Pin
Colin Angus Mackay27-Apr-07 13:29
Colin Angus Mackay27-Apr-07 13:29 
GeneralRe: Enable foldering ? Pin
Ahmed R El Bohoty28-Apr-07 9:30
Ahmed R El Bohoty28-Apr-07 9:30 
GeneralRe: Enable foldering ? Pin
Colin Angus Mackay28-Apr-07 9:45
Colin Angus Mackay28-Apr-07 9:45 
GeneralRe: Enable foldering ? Pin
caix29-Apr-07 14:42
caix29-Apr-07 14:42 
AnswerRe: Enable foldering ? Pin
Sathesh Sakthivel27-Apr-07 4:51
Sathesh Sakthivel27-Apr-07 4:51 
QuestionProblem Called Bee Breading Pin
korani27-Apr-07 4:17
korani27-Apr-07 4:17 
Professor B. Heif is conducting experiments with a species of South American bees that he found during an expedition to the Brazilian rain forest. The honey produced by these bees is of superior quality compared to the honey from European and North American honey bees. Unfortunately, the bees do not breed well in captivity. Professor Heif thinks the reason is that the placement of the different maggots (for workers, queens, etc.) within the honeycomb depends on environmental conditions, which are different in his laboratory and the rain forest.
As a first step to validate his theory, Professor Heif wants to quantify the difference in maggot placement. For this he measures the distance between the cells of the comb into which the maggots are placed. To this end, the professor has labeled the cells by marking an arbitrary cell as number 1, and then labeling the remaining cells in a clockwise fashion.

For example, two maggots in cells 19 and 30 are 5 cells apart. One of the shortest paths connecting the two cells is via the cells 19 - 7 - 6 - 5 - 15 - 30, so you must move five times to adjacent cells to get from 19 to 30.
Professor Heif needs your help to write a program that computes the distance, defined as the number of cells in a shortest path, between any pair of cells.
Input
The input consists of several lines, each containing two integers a and b (a,b ≤ 10000), denoting numbers of cells. The integers are always positive, except in the last line where a=b=0 holds. This last line terminates the input and should not be processed.
Output
For each pair of numbers (a,b) in the input file, output the distance between the cells labeled a and b. The distance is the minimum number of moves to get from a to b.

i want the answer of this problem please.thx

Ahmed Samir
AnswerRe: Problem Called Bee Breading Pin
Colin Angus Mackay27-Apr-07 4:46
Colin Angus Mackay27-Apr-07 4:46 
GeneralRe: Problem Called Bee Breading Pin
Talal Sultan27-Apr-07 4:53
Talal Sultan27-Apr-07 4:53 
AnswerRe: Problem Called Bee Breading Pin
Talal Sultan27-Apr-07 4:57
Talal Sultan27-Apr-07 4:57 
AnswerRe: Problem Called Bee Breading Pin
Adeel Chaudhry27-Apr-07 7:23
Adeel Chaudhry27-Apr-07 7:23 
GeneralRe: Problem Called Bee Breading Pin
Luc Pattyn27-Apr-07 10:36
sitebuilderLuc Pattyn27-Apr-07 10:36 
AnswerRe: Problem Called Bee Breading Pin
Wes Aday27-Apr-07 9:29
professionalWes Aday27-Apr-07 9:29 
Questionwindows service and PHP Pin
xx5827-Apr-07 4:14
xx5827-Apr-07 4:14 
Questionc# datagrid - word wrap [modified] Pin
Ananthalvan27-Apr-07 4:11
Ananthalvan27-Apr-07 4:11 
AnswerRe: c# datagrid - word wrap Pin
Adeel Chaudhry27-Apr-07 4:20
Adeel Chaudhry27-Apr-07 4:20 
GeneralRe: c# datagrid - word wrap Pin
Ananthalvan14-May-07 7:48
Ananthalvan14-May-07 7:48 
QuestionHTMLDocument problem Pin
v-lokki27-Apr-07 4:02
v-lokki27-Apr-07 4:02 
AnswerRe: HTMLDocument problem Pin
Sathesh Sakthivel27-Apr-07 4:07
Sathesh Sakthivel27-Apr-07 4:07 
GeneralRe: HTMLDocument problem Pin
v-lokki27-Apr-07 4:12
v-lokki27-Apr-07 4:12 
QuestionSocket programming Pin
Rahul Babu27-Apr-07 3:55
Rahul Babu27-Apr-07 3:55 
AnswerRe: Socket programming Pin
Adeel Chaudhry27-Apr-07 4:01
Adeel Chaudhry27-Apr-07 4:01 
QuestionRegarding comboBox [modified] Pin
praveenkumar palla27-Apr-07 3:32
praveenkumar palla27-Apr-07 3:32 
AnswerRe: Regarding comboBox Pin
Adeel Chaudhry27-Apr-07 3:56
Adeel Chaudhry27-Apr-07 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.