Write a program in Java.
These numbers can be divided into pieces, each of which is the degree of the number X in a decimal.
The system. For example, if X = 5, then the double number number 101110011 can be broken by 101,
11001 and 1, each of which is 5 in some degree (101 in decimal = 5 = 5^1, 11001 =
25 = 5^2 and 1 = 1 is 5^0).Demonstrate that people are smarter than the bears, and for the given double number N find the smallest number of pieces to break it.
The program must be written on java.To the code must be written comments
The entrance data:
The first line contains X - the sequence of nulls and units and N.
The weekend data:
The minimum number of plots to which we can break the input number, or -1 if
This is not possible.
Applications 1
Client's review of cooperation with Vitalii Valchuk
Write a program in Java.A rapidly done project. The freelancer responds to all the messages.
Freelancer's review of cooperation with Igorevich Filipov
Write a program in Java.It responds quickly to the questions arising during the development process. Without a touch, you can work.
-
2125 226 0 1 In fact, I have a solution to your task, on the introduced examples in the task I got the same results.
-
105 Hello, ready to perform this task quickly and quality, there is an algorithm that solves this task.
-
389 22 1 Good night, I’ve got the task, I’ll do it in one day, write it.
-
300грн
-
Шматочки можуть повторюватись?
наприклад число 111, N=5, тоді 3 по 1
-
по суті N має бути більше 1, тому що якщо N=1 то в X мають бути 1 одиниці
-
Current freelance projects in the category Java
Development of an Android application player for the online TV service
609 USD
We need an Android developer to create a native Android application for an online TV service. Two versions are planned: for mobile devices: smartphones and tablets; for Android TV / Android STB: set-top boxes. Estimated timeline: up to 3 months. Estimated budget: 150,000… Java, App Development for Android ∙ 25 days 21 hours back ∙ 31 proposals |