SDUT OJ-2896
SDUTOJ 2475 Power Strings
<pre class="cpp" name="code">#include<iostream> #include<stdio.h> #include<string.h> #define N 1000005 int next[N]; char s[N]; using namespace std; void getnext(char s[])//K
日期 2023-06-12 10:48:40SDUTOJ 1298 活动选择
#include<iostream> #include<memory.h> using namespace std; int a[105],b[105],c[105],d[105]; int main() { int n,i,timestart=0,j,temp,t,t1,k; memset(d,0,sizeof(d)); cin>>n; for(
日期 2023-06-12 10:48:40SDUTOJ 2711 4-2 电子时钟中的运算符重载
#include<iostream> #include<stdio.h> using namespace std; class Time { private: int h, m, s; public: Time(); Time(int,int,int); void display(); void tick(); Time
日期 2023-06-12 10:48:40SDUT OJ 2463 学校password你必须学会科学计划
#include<iostream> #include<string.h> #include<stdio.h> #define N 10010 #define M 1000100 using namespace std; int next[N]; char s[M],t[N]; void getnext(char s[]) { int i=0,j=
日期 2023-06-12 10:48:40SDUTOJ 2826 小P寻宝记——好基友一起走
#include<iostream> #include<memory.h> using namespace std; int dp[10010]; int max(int a,int b) { return a>b?a:b; } int main() { int n,v,vi[10100],wi[10100],i,j; while(cin>>n
日期 2023-06-12 10:48:40SDUT OJ -2892 A
A Time Limit: 60ms Memory limit: 65536K 有疑问?点这里^_^ 题目描写叙述 给出n(1<= n && n <= 2*10^6)个字符串,每一个字符串仅仅包括小写英文字母。且最多有五个。问这n个字符串中出现次数最多的有多少个。 输入 单组输入。第一行输入一
日期 2023-06-12 10:48:40SDUTOJ 2804求二叉树的深度
#include<iostream> #include<stdlib.h> #include<string.h> using namespace std; char s1[100],s2[100]; typedef struct BiTNode { char data; struct BiTNode *lchild,*rchild; }BiTNode,
日期 2023-06-12 10:48:40sdutoj1225--编辑距离(dp:字符串转换)
编辑距离 Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^ 题目描写叙述 如果字符串的基本操作仅为:删除一个字符、插入一个字符和将一个字符改动成还有一个字符这三种操作。 我们把进行了一次上述三种操作的随意一种操作称为进行了一步字符基本操作。 以下我们定义两个字符串的编
日期 2023-06-12 10:48:40