佛奴儿
佛奴儿
全部文章
未归档
归档
标签
去牛客网
登录
/
注册
Roni
ACMer
全部文章
/ 未归档
(共985篇)
L1-3. 情人节【求第2个、第14个人的名字,设置计数器并标记一下即可】
L1-3. 情人节 时间限制 400 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 ...
2018-03-28
0
420
L1-2. 点赞【求多组数据中出现次数最多的】
L1-2. 点赞 时间限制 200 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 ...
2018-03-28
0
398
L1-1. 出生年【STL放的位置】
L1-1. 出生年 时间限制 400 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 ...
2018-03-28
0
412
常用函数和STL
#include <bits/stdc++.h> using namespace std; #define PI acos(-1.0) int main() { printf("%f\n",asin(0.5));//求反正弦 printf...
2018-03-26
0
356
最长回文子序列
#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; char str[1005]; int f[1005][1005]; int main...
2018-03-25
0
375
最长回文子串
注意是回文子串 1.暴力法 2.中心拓展法 3.动态规划法 4.manacher法 题目(2016腾讯实习生校招笔试题):输入一个字符串,求出其中最长的回文子串(子串的含义是:在原串中连续出现的字符串片段。回文的含义是:正着看和倒着看相同,如abba和abcba),在判断时,应该...
2018-03-25
0
558
一维数组解最长上升公共子序列(LCIS)
#include<bits/stdc++.h> using namespace std; const int maxn = 3000 + 10; int n,a[maxn],b[maxn],dp[maxn]; int main() { scanf("%...
2018-03-23
0
352
一维数组解01背包
#include<bits/stdc++.h> #define ll long long using namespace std; const int maxn=1010; int c[maxn],w[maxn]; int dp[maxn]; int main(){ ...
2018-03-23
0
291
CCCC L2-024 部落【并查集】
https://www.patest.cn/contests/gplt/L2-024 首先在一行中输出这个社区的总人数、以及互不相交的部落的个数。随后对每一次查询,如果他们属于同一个部落,则在一行中输出“Y”,否则输出“N”。 /* 求连通分量,先记录下原始的连通分...
2018-03-23
0
512
51nod 1092 回文字符串【LCS】
1092 回文字符串 基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注 回文串是指aba、abba、cccbccc、aaaa这种左右对称的字符串。每个字符串都可以通过向中间添加...
2018-03-23
0
541
首页
上一页
50
51
52
53
54
55
56
57
58
59
下一页
末页