为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

大伙儿帮忙看看这程序题什么意思英文不好,看不懂

2017-09-26 2页 doc 13KB 11阅读

用户头像

is_769254

暂无简介

举报
大伙儿帮忙看看这程序题什么意思英文不好,看不懂大伙儿帮忙看看这程序题什么意思英文不好,看不懂 大家帮忙看看这程序题什么意思,英文不好,看不懂~ 2. MultiplesWithLimit Problem Statement Your task is to find the minimal positive integer x such that: 1. x is an integer multiple of N. 2. The decimal representation of x doesn't contain any forbidden digits. ...
大伙儿帮忙看看这程序题什么意思英文不好,看不懂
大伙儿帮忙看看这程序题什么意思英文不好,看不懂 大家帮忙看看这程序题什么意思,英文不好,看不懂~ 2. MultiplesWithLimit Problem Statement Your task is to find the minimal positive integer x such that: 1. x is an integer multiple of N. 2. The decimal representation of x doesn't contain any forbidden digits. You will be given the forbidden digits as a int[] forbiddenDigits. If there is no solution, you should return the String IMPOSSIBLE (quotes for clarity). If there is a solution and its number of digits is strictly less than 9, you should return a String containing the integer x in base 10, with no leading zeros. Otherwise, you should return a String of the form abc...def(g digits) (quotes for clarity). In the return value, abc are the first three digits of the smallest valid integer x, def are its last three digits, and g is the number of digits in x (a base-10 integer with no leading zeros). Definition Class: MultiplesWithLimit Method: minMultiples Parameters: int, int[] Returns: String Method signature: String minMultiples(int N, int[] forbiddenDigits) (be sure your method is public) Constraints - N will be between 1 and 10000, inclusive. - forbiddenDigits will contain between 0 and 10 elements, inclusive. - Each element of forbiddenDigits will be between 0 and 9, inclusive. - The elements of forbiddenDigits will be pairwise distinct. Examples 0) 8 {2,3,4,5,6,7,8,9} Returns: 1000 The smallest positive multiple of 8 that only contains digits 0 and 1 is 1000.
/
本文档为【大伙儿帮忙看看这程序题什么意思英文不好,看不懂】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
热门搜索

历史搜索

    清空历史搜索