Cccccccccccccccccccccccc
Cccccccccccccccccccccccc
全部文章
C++学习记录
ACM(14)
Golang(4)
JAVA学习记录(9)
Juc(2)
JVM(1)
Python(2)
Python项目测试(1)
中间件(1)
乱七八糟(4)
安卓学习记录(1)
机器学习(2)
用java写算法!(4)
归档
标签
去牛客网
登录
/
注册
。
人生最后悔的事情就是 我本可以。
全部文章
/ C++学习记录
(共30篇)
判断子串#数学结合
A Count Task Problem Description Count is one of WNJXYK’s favorite tasks. Recently, he had a very long string and he wondered that how many substrings...
2019-05-30
0
279
N皇后#回溯递归
<font size=5 face"微软雅黑">N皇后Problem Description <font size=4 face"微软雅黑">在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,...
2019-05-27
0
371
A==B?##高精度
Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test ca...
2019-05-27
0
610
日常学习函数
静态变量static,只进行一次初始化。 #include<cstring> #include<iostream> using namespace std; int main() { for(int i=0;i<3;i++) { int sta...
2019-05-27
0
366
遍历
hide handkerchief Problem Description The Children’s Day has passed for some days .Has you remembered something happened at your childhood? I remem...
2019-05-20
0
272
字符串与指针操作库函数
测试程序 #include<iostream> #include<cstring> using namespace std; int a[204],b[204],lena,n; char s1[100]="12345"; char s2[100]=&q...
2019-05-20
0
337
贪心算法#二分查找
D - Aggressive cows 农夫 John 建造了一座很长的畜栏,它包括N (2 <= N <= 100,000)个隔间,这些小隔间依次编号为x1,...,xN (0 <= xi <= 1,000,000,000). 但是,John的C (2 <= C &...
2019-05-13
0
388
预处理
C - Lucky 7 in the Pocket BaoBao loves number 7 but hates number 4, so he refers to an integer as a "lucky integer" if is divisible by 7...
2019-05-08
0
303
深度搜索#递归
深度搜索 走地图的题目是深度搜索里比较容易理解的题目,更深层次的是全排列和七皇后等经典题目,更加难以理解,代码比较抽象。 题目:红与黑 蒜厂有一间长方形的房子,地上铺了红色、黑色两种颜色的正方形瓷砖。你站在其中一块黑色的瓷砖上,只能向相邻的黑色瓷砖移动。 请写一个程序,计算你总共能够到达多少块...
2019-04-08
0
371
位运算
位运算 Problem Description7-1 数组元素循环右移问题 一个数组A中存有N(>0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(≥0)个位置,即将A中的数据由(A0 A1⋯AN−1)变换为(AN−M ⋯AN−1 A0 A1 ⋯AN−M−1 )(最后M个...
2019-04-02
0
406
首页
上一页
1
2
3
下一页
末页