Anyway1314
Anyway1314
全部文章
分类
OJ刷题(3)
Python(4)
STL(4)
Yilia(2)
动态规划(4)
华为笔试题(1)
图论(3)
基础模板(3)
字符串处理(6)
学习笔记(7)
常用技巧(2)
数学(17)
未归档(98)
网站开发(1)
随笔(2)
归档
标签
去牛客网
登录
/
注册
Anyway1314的博客
远处的是风景,近处的才是人生
全部文章
(共157篇)
HDU1251:统计难题
Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的...
2018-07-21
0
382
Codeforces 987B B. High School: Become Human
B. High School: Become Human time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output ...
2018-06-17
0
384
Codeforces 987A A. Infinity Gauntlet(灭霸的无限手套)
A. Infinity Gauntlet time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You took...
2018-06-17
0
420
Codeforces 989B A Tide of Riverscape
The records are expressed as a string ss of characters '0', '1' and '.', where '0' denotes a low tide, '1' denotes a high tide, and '.' denotes an ...
2018-06-13
0
486
Codeforces 989A A Blend of Springtime
The landscape can be expressed as a row of consecutive cells, each of which either contains a flower of colour amber or buff or canary yellow, or i...
2018-06-13
0
505
HDU1799 -循环多少次
我们知道,在编程中,我们时常需要考虑到时间复杂度,特别是对于循环的部分。例如, 如果代码中出现 for(i=1;i<=n;i++) OP ; 那么做了n次OP运算,如果代码中出现 fori=1;i<=n; i++) for(j=i+1;j<=n; j++) OP; 那...
2018-06-05
0
334
Codeforce Round #486 (Div.3) B. Substrings Sort
B. Substrings Sort time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are gi...
2018-06-02
0
439
Codeforce Round #486 (Div.3) A Diverse Team
A. Diverse Team time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There are nn ...
2018-06-02
0
560
51Nod-1118 机器人走方格(基础dp)
1118 机器人走方格 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 M * N的方格,一个机器人从左上走到右下,只能向右或向下走。有多少种不同的走法?由于方法数量可能很大,只需要输出Mod 10^9 + 7的结果。 Input 第1行,2个数M,N,...
2018-05-28
0
412
南阳理工OJ-91 阶乘之和(dfs)
描述 给你一个非负数整数n,判断n是不是一些数(这些数不允许重复使用,且为正数)的阶乘之和,如9=1!+2!+3!,如果是,则输出Yes,否则输出No; 输入 第一行有一个整数0<m<100,表示有m组测试数据; 每组测试数据有一个正整数n<1000000; 输出 ...
2018-05-23
0
591
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页