ChatCrawlersearch across public Telegram Open the app
P

Python

snapshot for June 2026
June 2026 ×
17 June 2026
F
Hello everyone, who will help you figure out the problem?
F
The natural number N is given to the input of the algorithm. The algorithm constructs a new number R on it as follows. 1. A binary notation of the number N is being built. 2. Two more categories are added to this entry on the right according to the following rule: A) at the end of the number (on the right) is added 1, if the number of units in the binary notation of the number is even, and 0, if the number of units in the binary notation of the number is odd; B) 1 is added to this entry on the right if the remainder of the division of the number of units by 2 is 0, and 0 if the remainder of the division of the number of units by 2 is equal to 1. The record obtained in this way is a binary notation of the desired number R. Specify the minimum number R, which exceeds 54 and can be the result of the algorithm. In the answer, write down this number in the decimal system.
For n in range (1,100): r = bin(n)[2:] if n % 2 == 0: r = r + “1” if n % 2 == 1: r = r + “0” if n % 2 == 0: r.count (“1”) If n % 2 == 1: r.count (“0”) r = int(r,2) if r > 54: print(r) I wrote the code so but the minimum number I have is 58
F
This is an exam assignment
C
fr|This is an exam assignment
The purpose of an exam assignment is to test your knowledge and capabilities to give you a grade that reflects your knowledge and capabilities. It defeats the purpose if others provide you help with that.
What does that mean? I've been learning python quite recently and I only have an exam in a year
F
And to pass well, I'm asking for help from you, which I don't get
F
I'm just getting ready
F
Yes, I'm from Russia, I translate, it's hard for me to communicate, but I can't find help
F
Thank you, I'm starting to understand
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog