07 2019 档案
摘要:Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,
阅读全文
摘要:B. Merge it! You are given an array aanna1,a2,…,ana1,a2,…,an In one operation you can choose two elements of the array and replace them with the eleme
阅读全文
摘要:Divide it! You are given an integer nn. You can perform any of the following operations with this number an arbitrary (possibly, zero) number of times
阅读全文
摘要:A. Diverse Strings A. Diverse Strings A string is called diverse if it contains consecutive (adjacent) letters of the Latin alphabet and each letter o
阅读全文
摘要:B. Parity Alternated Deletions B. Parity Alternated Deletions Polycarp has an array aa consisting of nn integers. He wants to play a game with this ar
阅读全文
摘要:C. Two Shuffled Sequences C. Two Shuffled Sequences Two integer sequences existed initially — one of them was strictly increasing, and the other one —
阅读全文
摘要:D. Equalize Them All D. Equalize Them All You are given an array aa consisting of nn integers. You can perform the following operations arbitrary numb
阅读全文
摘要:A. Reachable Numbers A. Reachable Numbers Let's denote a function f(x)f(x) in such a way: we add 11 to xx, then, while there is at least one trailing
阅读全文
摘要:B. Long Number B. Long Number You are given a long decimal number aa consisting of nn digits from 11 to 99. You also have a function ff that maps ever
阅读全文
摘要:A superhero fights with a monster. The battle consists of rounds, each of which lasts exactly nn minutes. After a round ends, the next round starts im
阅读全文
摘要:纪录一下我小学期2天花了20小时写的菜品识别java程序。 1.2. 百度智能云简介 1.2.1 百度图像识别服务 百度图像识别服务,基于深度学习及大规模图像训练,准确识别图片中的物体类别、位置、置信度等综合信息。 1.2.2 菜品识别 支持识别5万种菜品,适用于识别只含有单个菜品的图片,接口返回菜
阅读全文
摘要:Vova is playing a computer game. There are in total nn turns in the game and Vova really wants to play all of them. The initial charge of his laptop b
阅读全文
摘要:Polycarp knows that if the sum of the digits of a number is divisible by 3, then the number itself is divisible by 3. He assumes that the numbers, the
阅读全文
摘要:Arkady invited Anna for a dinner to a sushi restaurant. The restaurant is a bit unusual: it offers nn pieces of sushi aligned in a row, and a customer
阅读全文

浙公网安备 33010602011771号