redoCxz
redoCxz
全部文章
分类
ACM练习赛(18)
ACM练习题(418)
BZOJ刷题(5)
C++算法模板(20)
codeforce(4)
hdu(8)
java(16)
Java算法模板(24)
kotlin(1)
Leetcode(12)
Lintcode(26)
剑指offer(1)
拓展欧几里德(1)
最小生成树(1)
未归档(70)
杂七杂八(41)
水题(1)
牛客网(2)
牛客网错题总结(1)
算法四(2)
题解(1)
归档
标签
去牛客网
登录
/
注册
redoCxz的博客
全部文章
(共388篇)
poj3259——Wormholes
While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path tha...
2021-04-05
0
523
hdu2097——Sky数
Sky从小喜欢奇特的东西,而且天生对数字特别敏感,一次偶然的机会,他发现了一个有趣的四位数2992,这个数,它的十进制数表示,其四位数字之和为2+9+9+2=22,它的十六进制数BB0,其四位数字之和也为22,同时它的十二进制数表示1894,其四位数字之和也为22,啊哈,真是巧啊。Sky非常喜欢这种...
2021-04-05
0
604
牛客小白赛6D——字符串丝带
链接:https://www.nowcoder.com/acm/contest/136/D 来源:牛客网 题目描述 WHZ送给了HtBest一个“字符串丝带”,这条丝带由n个小写字母按照一定的顺序排列组成,HtBest收到新礼物后有许多问题,类似“第i个位置的字母在前i个位置中出现了几次?”,...
2021-04-05
0
568
c++的set重载运算符
set 容器模版需要3个泛型参数,如下: template<class T, class C, class A> class set; 第一个T 是元素类型,必选; 第二个C 指定元素比较方式,缺省为 Less, 即使用 < 符号比较; 第三个A 指定空间分配对象,一般使用...
2021-04-05
0
773
Codeforces1008A——Romaji
Vitya has just started learning Berlanese language. It is known that Berlanese uses the Latin alphabet. Vowel letters are “a”, “o”, “u”, “i”, and “e”....
2021-04-05
0
541
Codeforces1008B——Turn the Rectangles
There are n rectangles in a row. You can either turn each rectangle by 90 degrees or leave it as it is. If you turn a rectangle, its width will be hei...
2021-04-05
0
431
Codeforces1009C——Reorder the Array
You are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers will become ...
2021-04-05
0
442
Codeforces1009A——Game Shopping
Maxim wants to buy some games at the local game shop. There are n games in the shop, the i-th game costs ci. Maxim has a wallet which can be represen...
2021-04-05
0
453
Codeforces1009B——Minimum Ternary String
You are given a ternary string (it is a string which consists only of characters ‘0’, ‘1’ and ‘2’). You can swap any two adjacent (consecutive) chara...
2021-04-05
0
461
Codeforces1009C——Annoying Present
Alice got an array of length n as a birthday present once again! This is the third year in a row! And what is more disappointing, it is overwhelmengl...
2021-04-05
0
341
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页