Thank_you
Thank_you
全部文章
未归档
BFS标记路径(1)
C F 水题(20)
dfs(1)
SDNUOJ(26)
string(1)
vector(1)
一点发现(3)
一点算法(3)
冒泡排序(1)
强制改变类型(1)
快速幂(取模)(1)
所谓函数(1)
数组a[-1](1)
栈stack(1)
线性筛(1)
队列queue(1)
随笔(1)
归档
标签
去牛客网
登录
/
注册
Thank_you的博客
全部文章
/ 未归档
(共62篇)
LIS(正向)输出路径(n * logn版)
原作者:Lj_三日小先森 原文:https://blog.csdn.net/Lj_victor/article/details/81603657 我复制了其代码,并略加改动 /// -7 10 9 2 3 8 8 1 #include<cstdio> #include<...
2018-12-15
0
476
LIS最长不下降(上升或持平)子序列 n * logn版
输入多个数字,直到EOF,计算其LIS 我们暂且把n * logn算法叫做“歪门邪道”,其机理如下: “初始时dp[0] = s[0], 从i = 1时遍历原数列, 将每个数与dp数列的末尾的数进行比较, 如果大于末尾的数, 就把s[i]放在dp数列的最后, 如果小于末尾的数,那么就用s[i]替换...
2018-12-14
0
401
1513.K.Reversed Words SDNUOJ 1513
Description Some aliens are learning English. They have a very strange way in writing that they revered every word in the sentence but keep all the wo...
2018-12-12
0
447
vector访问元素(删除性访问)
#include <cstdio> #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { vector<...
2018-12-11
0
324
1359.GPA SDNUOJ 1359(2018新生第一次周赛测试题)
当时我不会 Description Each course grade is one of the following five letters: A, B, C, D, and F. (Note that there is no grade E.) The grade A indicates s...
2018-12-11
0
470
1357.Text Reverse SDNUOJ 1357(2018新生第一次周赛测试题)
我当时不会 Description Chaochao likes to write words in reverse way. Given a single line of text which is written by Chaochao, you should reverse all the ...
2018-12-11
0
463
string(新手练习)含代码、注释
第一次编译大概需要7秒 自我感觉重要的几点: 1.getline(cin, s)的赋值 2.字符串数组的使用 5.大小、判空 6.末尾添加 11.string查找 #include <cstdio> #include <iostream> #include <st...
2018-12-11
0
406
1059.The Seven Percent Solution SDNUOJ 1059
Description Uniform Resource Identifiers (or URIs) are strings like http://icpc.baylor.edu/icpc/, mailto:foo@bar.org, ftp://127.0.0.1/pub/linux, or ev...
2018-12-09
0
387
HDUOJ 1009
Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean...
2018-12-07
0
336
字符串升序
#include<bits/stdc++.h> using namespace std; int main() { char a[55] = {},b[55] = {} ; while(cin >> a && cin >> b) ...
2018-12-07
0
273
首页
上一页
1
2
3
4
5
6
7
下一页
末页