Anyway1314
Anyway1314
全部文章
未归档
OJ刷题(3)
Python(4)
STL(4)
Yilia(2)
动态规划(4)
华为笔试题(1)
图论(3)
基础模板(3)
字符串处理(6)
学习笔记(7)
常用技巧(2)
数学(17)
网站开发(1)
随笔(2)
归档
标签
去牛客网
登录
/
注册
Anyway1314的博客
远处的是风景,近处的才是人生
全部文章
/ 未归档
(共98篇)
3的幂的和 (逆元基础)
求:3^0 + 3^1 +...+ 3^(N) mod 1000000007 Input 输入一个数N(0 <= N <= 10^9) Output 输出:计算结果 Sample Input 3 Sample Output 40 首先:3^0 + 3^1 +...+...
2018-07-24
0
441
Codeforces 894A(QAQ)
A. QAQ time limit per test 1 second memory limit per test 256 megabytes input standa...
2018-07-23
0
540
NHK协会的阴谋(模拟,水)
题目描述 “阴谋啊,这一定是NHK协会的阴谋” 事实上,NHK协会是真实存在的,NHK协会会为每个人分配一个特征码(只包含大写字母的 字符串)以及一个改变系数Q。然后NHK协会会根据以下规则将满足条件的人列为NEET:规定特 征码中所有的0N0,0H0,0K0最多能组合成”NHK”的个数为P 。要求...
2018-07-23
0
470
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
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
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页