11 2020 档案
摘要:题目 Hr0d1y has q queries on a binary string s of length n. A binary...
阅读全文
摘要:题意 给定一个数n,问让这个数从n到1需要几步操作。有以下两种操作方式: 1、如果n > 1,n可以减1 2、除以一个能整除的数 题...
阅读全文
摘要:要求1 保存对象信息到文件,并将文件中的对象信息显示出来。 代码 此处对象为一个学生对象 import java.io.*;clas...
阅读全文
摘要:题目 角色可向怪物实施攻击,一次攻击后,怪物会损失部分生命值,当生命值损失完之后,怪物死亡 需求 角色可装备不同的武器,目前有木剑、...
阅读全文
摘要:题目 There are n+2 towns located on a coordinate line, numbered from...
阅读全文
摘要:题目 You are given a string s, consisting of brackets of two types: ...
阅读全文
摘要:题目 You are asked to watch your nephew who likes to play with toy b...
阅读全文
摘要:题目 There is an infinite 2-dimensional grid. The robot stands in ce...
阅读全文
摘要:A 贪心,由于基地可以重复销毁,所以找出找出每架战机可轰炸基地的最大价值,排序之后贪心找一下即可 #include#includeu...
阅读全文
摘要:题目 Wheatley decided to try to make a test chamber. He made a nice ...
阅读全文
摘要:题目 题意 给你一个01字符串,可以对其中的一段进行翻转操作,问使字符串变成01交错的字符串至少需要多少次操作 题解 翻转字符串不...
阅读全文
摘要:题目 题意 给定一个区间【l, r】,找出是否存在一个数a使得区间内所有数x满足 x % a >= a / 2 题解 如果2 * ...
阅读全文
摘要:题目 Petya is preparing for his birthday. He decided that there woul...
阅读全文
摘要:题目 Bertown is a city with n buildings in a straight line. The city...
阅读全文
摘要:题目: Today the kindergarten has a new group of n kids who need to b...
阅读全文
浙公网安备 33010602011771号