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.
-
2046 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.
-
390 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
Script for modifying APKI have a script for older versions of the APK Minecraft that allowed creating a lighter version of the game by removing the music. Additionally, the script created a clone of Minecraft (so you could have two Minecraft games on your device...), and it also embedded the servers we… Java, App Development for Android ∙ 18 hours 46 minutes back ∙ 11 proposals |
Customization of the loading screen and menu for Minecraft 1.12.2 (Tech Survival)
20 USD
Need to refine the ready client Minecraft 1.12.2 with mods and implement a custom interface design in the style of technical survival (Industrial / Tech Survival).What needs to be done1. Custom mod loading screen It is necessary to replace the standard Minecraft/Forge loading… Java, Gaming Apps ∙ 5 days 17 hours back ∙ 6 proposals |
Integration of dental scanner modules into CRM
601 USD
We have developed a CRM system for interaction with dentists and laboratories. It is necessary to integrate services like iTero, Sirona, Medit, and others so that files are pulled automatically. AI & Machine Learning, Java ∙ 5 days 18 hours back ∙ 27 proposals |
Development of simple 2D games (Snake, Galaxy, etc.) for Google Play MarketHello! I am looking for a developer (or a beginner with a good foundation) who can create several simple classic 2D games for the Android mobile platform with subsequent publication in the Play Market.To start, one or two games need to be developed. Examples of settings and… Java, Gaming Apps ∙ 7 days 21 hours back ∙ 19 proposals |
Application developmentI wish to create a mobile application for communication, the app should have audio and video calls, group chat creation, the ability to sync with phone contacts, account settings: email binding, 2FA, phone number, the ability to customize app notifications, change the app… Java, Python ∙ 12 days 15 hours back ∙ 41 proposals |