会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
can丶
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2017年11月19日
找出100~n(不大于1000)之间三个位上的数字等相等的所有整数,放在s所指的数组中
摘要: #include <stdio.h>#define N 100int fun(int *s, int n){ int i,j,k,a,b,c; j=0; for(i=100; i<n; i++) { k=i; a=k%10; k/=10; b=k%10; c=k/10; if(a==b && a==
阅读全文
posted @ 2017-11-19 22:17 can丶
阅读(727)
评论(0)
推荐(0)
2017年11月17日
由0到4五个数字,组成5位数,每个数字用一次,但十位和百位不能为3(当然万位不能为0),输出所有可能的五位数
摘要: #include<stdio.h>int main(){ int a,b,c,d,e,sum=0,count=0; for(a=1;a<=4;a++){ for(b=0;b<=4;b++){ if(a==b)continue; for(c=0;c<=4;c++){ if(c==3||c==a||c=
阅读全文
posted @ 2017-11-17 21:33 can丶
阅读(1110)
评论(0)
推荐(0)
2017年11月16日
函数FUN功能,从三个形参a、b、c找出中间的数
摘要: #include <stdio.h>int fun(int a,int b,int c){ int t; t=(a>b)?(b>c?b:(a>c?c:a)) :((a>c)?a :((b>c)?c:b)); return t; }main(){ int a1=3,a2=5,a3=4,r; r=fun
阅读全文
posted @ 2017-11-16 22:49 can丶
阅读(1931)
评论(0)
推荐(0)
2017年11月14日
远程网络教学系统功能
摘要: 远程网络教学系统功能需求如下: ●学生登录网站后,可以浏览课件、查找课件、下载课件、观看教学视频。 ●教师登录网站后,可以上传课件、上传教学视频、发布教学心得、查看教学心得、修改教学心得。 ●系统管理员负责对网站页面的维护、审核不合法课件和不合法教学信息、批准用户注册。 1. 学生需要登录系统后才能
阅读全文
posted @ 2017-11-14 22:32 can丶
阅读(3218)
评论(0)
推荐(0)
2017年11月12日
SQL创建一个学生信息表
摘要: CREATE TABLE Student (Sno CHAR(9) PRIMARY KEY, Sname CHAR(20) UNIQUE, Ssex CHAR(2), Sage SMALLINT, Sdept CHAR(20) ); insert into student values('20121
阅读全文
posted @ 2017-11-12 22:01 can丶
阅读(34019)
评论(0)
推荐(0)
2017年11月11日
poj 1961 Period 把主串的每一种前缀当作小主串,如果小主串的子串在小主串中叠加次数大于1,输出小主串长度及叠加次数。
摘要: #include<stdio.h> #define M 1000010 int i,n,next[M]; char s[M]; void getNext() { int j=-1; next[0]=-1; for(i=1;s[i];i++){ while(j!=-1&&s[j+1]!=s[i])j=
阅读全文
posted @ 2017-11-11 23:05 can丶
阅读(127)
评论(0)
推荐(0)
2017年11月10日
poj 2406 Power Strings求子串在主串中最多叠加次数
摘要: #include<stdio.h> #define M 1000010 int n,next[M]; char s[M]; void getNext() { int i=1,j=-1; next[0]=-1; for(;s[i];i++){ while(j!=-1&&s[j+1]!=s[i])j=n
阅读全文
posted @ 2017-11-10 22:50 can丶
阅读(177)
评论(0)
推荐(0)
2017年11月9日
编写处理请求参数的Servlet
摘要: packet servlet; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class CheckParamServlet extends HttpServlet{ public void
阅读全文
posted @ 2017-11-09 22:36 can丶
阅读(320)
评论(0)
推荐(0)
2017年11月8日
//poj 2752 Seek the Name, Seek the Fame 求子串前缀跟后缀一样的各种情况
摘要: #include<stdio.h>#define M 1000010char s[M],t[M];int next[M],sum;void getNext()//求next数组{ int i,j; next[0]=-1; for(i=1,j=-1;s[i];i++){ while(j!=-1&&s[
阅读全文
posted @ 2017-11-08 22:35 can丶
阅读(185)
评论(0)
推荐(0)
2017年11月7日
//poj 3461 Oulipo 最简单的KMP题,找出第一个字符串在第二个字符串中出现次数。
摘要: #include<stdio.h> #define M 1000010 char s[M],t[M]; int next[M],sum; void getNext()//求next数组 { int i,j; next[0]=-1; for(i=1,j=-1;s[i];i++){ while(j!=-
阅读全文
posted @ 2017-11-07 21:42 can丶
阅读(291)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告