上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 1 #include <stdio.h> 2 #include <string.h> 3 int map[1000][1000]; 4 int visit[1000]; 5 int n; 6 int max;//利用max来标记是否达到隘口1,如达到则max=1; 7 void DFS(int t) 8 { 9 visit[t]=1; 10 int i; 11 for(i=n; i>=0; i-- 阅读全文
posted @ 2019-10-27 22:33 念文丶 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class Main { 3 public static void main(String[] args) { 4 Scanner input = new Scanner(System.in); 5 while(input.hasNext()) { 6 ... 阅读全文
posted @ 2019-10-24 22:38 念文丶 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1 yyyy:年 2 MM:月 3 dd:日 4 hh:1~12小时制(1-12) 5 HH:24小时制(0-23) 6 mm:分 7 ss:秒 8 S:毫秒 9 E:星期几 10 D:一年中的第几天 11 F:一月中的第几个星期(会把这个月总共过的天数除以7) 12 w:一年中的第几个星期 13 W:一月中的第几星期(会根据实际情况来算) 14 a:上下午标识 15 k:表示一天24小时制(1- 阅读全文
posted @ 2019-10-24 08:33 念文丶 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 struct node 5 { 6 char a; 7 struct node*left,*right; 8 }; 9 int max(int a,int b) 10 { 11 if(a>b)return a; 12 else return b; 13 } 14 stru... 阅读全文
posted @ 2019-10-20 10:44 念文丶 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 char s[1000]; 5 int t; 6 struct node 7 { 8 char a; 9 struct node*left,*right; 10 }; 11 //这里struct student是类型,*表示是指针,也就 12 //是说函数create()返回值是一个st... 阅读全文
posted @ 2019-10-19 20:18 念文丶 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 struct node 4 { 5 int date1,date2; 6 struct node*next; 7 } node; 8 int main() 9 { 10 struct node*p,*head,*end,*q; 11 head=(struct node*)malloc(sizeo... 阅读全文
posted @ 2019-10-08 22:58 念文丶 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 int a[60000],c=0; 4 int i; 5 int max(int m,int n) 6 { 7 if(m>n)return m; 8 else return n; 9 } 10 int sum(int ii,int jj) 11 { 12 int maxsum=0; 13 c++; 14 if 阅读全文
posted @ 2019-10-08 21:42 念文丶 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 int main() 5 { 6 int m,i,j,k,p,mark=1,n,t; 7 int math[1000000]; 8 scanf("%d",&n); 9 for(i=0; i<n; i++) 10 { 11 scanf("%d",&m... 阅读全文
posted @ 2019-10-08 13:14 念文丶 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 int main() 5 { 6 int m,i,j,k,p,mark=1; 7 int math[10000]; 8 scanf("%d",&m); 9 while(m--) 10 { 11 int n; 12 p=0; 13 scanf("%d",&n); 14 阅读全文
posted @ 2019-10-08 12:46 念文丶 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 int main() 5 { 6 int m,i,j,k; 7 int math[20000]; 8 scanf("%d",&m); 9 while(m--) 10 { 11 int n; 12 scanf("%d",&n); 13 for(i=0; i<n; i+ 阅读全文
posted @ 2019-10-08 12:22 念文丶 阅读(321) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页