answersLogoWhite

0


Best Answer

977

Ruby program to figure this out:

#!/usr/bin/ruby

class Circle

attr :guys

attr :sword

def initialize(numguys)

@guys = (1 .. numguys).to_a

@sword = 0

end

def inspect

@guys

end

def kill

if @sword + 1 >= @guys.length

if @sword >= @guys.length

@sword = 0

else

@sword = -1

end

end

@sword = @sword + 1

@guys.delete_at(@sword)

end

end

theCircle = Circle.new(1000)

while theCircle.guys.length > 1

theCircle.kill

end

printf "guys: %s\n", theCircle.guys.join(' ')

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: There are 1000 soldiers with a no on their T Shirts 123..9991000 standing on a circular track Man with no1 is carrying a sword in his hand He kills man at no 2 and pass on sword to no 3 This goes on u?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

Is there a name on the 180 degree soldiers turn?

The commands are: While standing, "About, Face". While marching, "To the Rear, March".


How do you find the volume of a cylinder when given the diameter?

Stand it on a circular end, like a tin can standing on a shelf.Its volume is the area of its circular base, multiplied by its height.Another Answser:To answer the specific question, you can not find the volume of a cylinder when given only its diameter. You need also its length.


How do you find the volume of a cylinder if only the base area and height is given?

The Volume of a Right Cylinder is simply the volume of a circular prism. By 'right' I mean that the congruent top is directly above the base (with the radius of the circular base being at 90 degrees to the VERTICAL height). If the cylinder is oblique (where the top circle is NOT directly above the base) then the VERTICAL height must still be found first! The volume of ANY right prism is found by multiplying it's cross-sectional area by it's length (or height - depending upon whether it's lying 'flat' on a horizontal surface or is standing upright, etc..) Volume = Area of circular 'end/ base' * it's vertical height. (Note: The area of it's circular base is : pi * R^2 (R = radius of the circle) ). STEVE EASTOP.


You are standing in one big palace where 5 soldiers stay Each soldier has 5 rooms In each room there are 5 big tigers Each big tiger has 5 little tigers Each tiger has 4 legs?

In total there are 3012 soldier's legs in the palace


What is wrong side of the cot?

Standing on the wrong side of the cot is- Standing on the cot on the side where you usually have the pillows or standing on where usually (daily) you rest your head while you sleep.

Related questions

Who buries the dead standing up?

During a tour to Vietnam. I visited a North Vietnamese cemetery. I noticed that the headstones were about three feet apart . The dead soldiers were buried standing up just as soldiers are in formation . Soldiers standing forever .


What are rows of soldiers standing shoulder to shoulder called?

phalanx


Is it possible to produce a circular rainbow?

hmmm lol good question....i dont think it matters what the shape of it is....i think all it needs is rain.Ever walk across a sidewalk and see a rainbow puddle on the floor?Thats a circle :) Okay that ^ isn't a good answer... circular rainbows are possible it just depends where you are standing. If you are standing on a hill or mountain it is certainly likely the rainbow will be circular.


What is a power move?

Making decisions and carrying out plans to further your standing both socially and financially.


Soldiers served US in 1940?

The US had a standing Army & Navy in 1940.


What is the defionition of a regular army?

a standing army composed of full time soldiers


How do you give the golden vase to the women?

you have to give it to one of the soldiers standing at the door.


Where was Capt Preston standing during the Boston Massacre?

in between the angry crowd of colonists and his soldiers.


What is permanent force of professional soldiers called?

What was a new technology used by the assyrians


How soldiers in Indian army?

With about 1,414,000 soldiers in active service and about 1,800,000 reserve troops, the Indian Army is the world's second largest active standing army.


What is the noun clause in Did you see the Russian soldiers standing outside the embassy building?

The noun clause is 'Did you see the Russian soldiers...'; the noun clause is functioning as the subject of the sentence.


Does a cylinder have a curved and flat surface?

Yes, a cylinder has both curved and flat surface. Considering a solid cylinder standing on its end, the circular base and the circular top are flat surfaces. The surface connecting the top and bottom is curved.