İngilizce

There are 0000 guests in a hotel with 0000 rooms numbered from 0 to 0000. A guest staying in one room at the hotel leaves the door of the room open, while a guest staying in two rooms changes the state of the door: if it is closed, it opens, if it is open, it closes. A guest staying in three rooms closes the door of the room if it is open, and opens it if it is closed. In this way, each guest goes around the hotel as many times as there are rooms and changes the status of the doors.

When all guests complete the tour, how many open doors will there be?

Türkçe

0'den 0000'e kadar numaralandırılmış 0000 odalı bir otelde 0000 misafir bulunmaktadır. Otelde bir odada kalan misafir odanın kapısını açık bırakır, iki odada kalan misafir ise kapının durumunu değiştirir: eğer öyleyse kapalıysa açılır, açıksa kapanır. Üç odada kalan bir misafir, odanın kapısı açıksa kapatır, kapalıysa açar. Bu sayede her misafir otelin etrafını oda sayısı kadar dolaşarak kapıların durumunu değiştirir.

Tüm misafirler turuTamamladığında kaç açık kapı olacak?

(5000 karakter kaldı)
İngilizce
Türkçe

İçindekiler

Son çeviriler

devamını göster›