11 2020 档案

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