首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
redoCxz
获赞
136
粉丝
2
关注
0
看过 TA
257
女
钢铁研究总院
2021
Java
IP属地:浙江
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑redoCxz吗?
发布(391)
评论
刷题
收藏
redoCxz
关注TA,不错过内容更新
关注
2021-04-05 14:10
已编辑
钢铁研究总院 Java
hdu1870——愚人节的礼物
四月一日快到了,Vayko想了个愚人的好办法——送礼物。嘿嘿,不要想的太好,这礼物可没那么简单,Vayko为了愚人,准备了一堆盒子,其中有一个盒子里面装了礼物。盒子里面可以再放零个或者多个盒子。假设放礼物的盒子里不再放其他盒子。 用()表示一个盒子,B表示礼物,Vayko想让你帮她算出愚人指数,即最少需要拆多少个盒子才能拿到礼物。 Input 本题目包含多组测试,请处理到文件结束。 每组测试包含一个长度不大于1000,只包含’(‘,’)’和’B’三种字符的字符串,代表Vayko设计的礼物透视图。 你可以假设,每个透视图画的都是合法的。 Output 对于每组测试,请在一行里面输出...
0
点赞
评论
收藏
分享
2021-04-05 14:10
钢铁研究总院 Java
poj2528——Mayor's posters
The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all places at their whim. The city council has finally decided to build an electoral wall for placing the posters and introduce the following rules: Every ...
0
点赞
评论
收藏
分享
2021-04-05 14:10
钢铁研究总院 Java
hdu1698——Just a Hook
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length. Now Pudge wants to do some operations on the hook. Let us number the consecutive metallic sticks of the hook...
0
点赞
评论
收藏
分享
2021-04-05 14:09
已编辑
钢铁研究总院 Java
zoj1610——Count the Colors
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones. Your task is counting the segments of different colors you can see at last. Input The first line of each data set contains exactly one integer n, 1 <= n <= 8000, equal to t...
0
点赞
评论
收藏
分享
2021-04-05 14:09
钢铁研究总院 Java
Codeforces602B——Approximating a Constant Range
When Xellos was doing a practice course in university, he once had to measure the intensity of an effect that slowly approached equilibrium. A good way to determine the equilibrium intensity would be choosing a sufficiently large number of consecutive data points that seems as constant as possible a...
0
点赞
评论
收藏
分享
2021-04-05 14:08
已编辑
钢铁研究总院 Java
hdu1257——最小拦截系统
某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹. 怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.所以俺就到这里来求救了,请帮助计算一下最少需要多少套拦截系统. Input 输入若干组数据.每组数据包括:导弹总个数(正整数),导弹依此飞来的高度(雷达给出的高度数据是不大于30000的正整数,用空格分隔) Output 对应每组数据输出拦截所有导弹最...
0
点赞
评论
收藏
分享
2021-04-05 14:08
钢铁研究总院 Java
Codeforces1027A——Palindromic Twist
You are given a string s consisting of n lowercase Latin letters. n is even. For each position i (1≤i≤n) in string s you are required to change the letter on this position either to the previous letter in alphabetic order or to the next one (letters ‘a’ and ‘z’ have only one of these options). Lett...
0
点赞
评论
收藏
分享
2021-04-05 14:08
钢铁研究总院 Java
Codeforces1027B——Numbers on the Chessboard
You are given a chessboard of size n×n. It is filled with numbers from 1 to n2 in the following way: the first ⌈n22⌉ numbers from 1 to ⌈n22⌉ are written in the cells with even sum of coordinates from left to right from top to bottom. The rest n2−⌈n22⌉ numbers from ⌈n22⌉+1 to n2 are written in the ce...
0
点赞
评论
收藏
分享
2021-04-05 14:07
已编辑
钢铁研究总院 Java
Codeforces1027C——Minimum Value Rectangle
You have n sticks of the given lengths. Your task is to choose exactly four of them in such a way that they can form a rectangle. No sticks can be cut to pieces, each side of the rectangle must be formed by a single stick. No stick can be chosen multiple times. It is guaranteed that it is always po...
0
点赞
评论
收藏
分享
2021-04-05 14:07
钢铁研究总院 Java
Codeforces1027D——Mouse Hunt
Medicine faculty of Berland State University has just finished their admission campaign. As usual, about 80% of applicants are girls and majority of them are going to live in the university dormitory for the next 4 (hopefully) years. The dormitory consists of n rooms and a single mouse! Girls decid...
0
点赞
评论
收藏
分享
2021-04-05 14:07
已编辑
钢铁研究总院 Java
Codeforces998B——Cutting
There are a lot of things which could be cut — trees, paper, “the rope”. In this problem you are going to cut a sequence of integers. There is a sequence of integers, which contains the equal number of even and odd numbers. Given a limited budget, you need to make maximum possible number of cuts su...
0
点赞
评论
收藏
分享
2021-04-05 14:06
钢铁研究总院 Java
Codeforces998C——Convert to Ones
You’ve got a string a1,a2,…,an, consisting of zeros and ones. Let’s call a sequence of consecutive elements ai,ai + 1,…, aj (1≤ i≤ j≤ n) a substring of string a. ou can apply the following operations any number of times: Choose some substring of string a (for example, you can choose entire string...
0
点赞
评论
收藏
分享
2021-04-05 14:06
已编辑
钢铁研究总院 Java
Codeforces998D——Roman Digits
Let’s introduce a number system which is based on a roman digits. There are digits I, V, X, L which correspond to the numbers 1, 5, 10 and 50 respectively. The use of other roman digits is not allowed. Numbers in this system are written as a sequence of one or more digits. We define the value of th...
0
点赞
评论
收藏
分享
2021-04-05 14:06
已编辑
钢铁研究总院 Java
hdu1421——搬寝室
搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,实在是太多了,于是xhd决定随便搬2*k件过去就行了.但还是会很累,因为2*k也不小是一个不大于n的整数.幸运的是xhd根据多年的搬东西的经验发现每搬一次的疲劳度是和左右手的物品的重量差的平方成正比(这里补充一句,xhd每次搬两件东西,左手一件右手一件).例如xhd左手拿重量为3的物品,右手拿重量为6的物品,则他搬完这次的疲劳度为(6-3)^2 = 9.现在可怜的xhd希望知道搬完这2*k件物品后的最佳状...
0
点赞
评论
收藏
分享
2021-04-05 14:05
钢铁研究总院 Java
hdu4704——Sum
emmmmm狗屁费马小定理 我们首先定义 An=S1+S2+...+Sn A n = S 1 + S 2 + . . . + S n ,所以 An+1=S1+S2+...+Sn+Sn+1 A n + 1 = S 1 + S 2 + . . . + S n + S n + 1 ,而 Sn+1 S n + 1 表示n+1个数组成n的情况数,我们考虑第一个数为 1,2,...n 1 , 2 , . . . n ,比如第一个数是1的情况, Sn+1 S n + 1 就转化为 Sn S n ,同理,最后 Sn+1=S1+S2+...+Sn S n + 1 = S 1 + S ...
0
点赞
评论
收藏
分享
1
8
9
10
11
12
27
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务