上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
  2015年7月6日
摘要: //约瑟夫问题#include#include#define MAX_NUM 300int aLoop[MAX_NUM+10];main(){ int n,m,i; while(1) { scanf("%d%d",&n,&m); if(n==0) break; for(i=0;i<n;i+... 阅读全文
posted @ 2015-07-06 21:25 _noname 阅读(91) 评论(0) 推荐(0) 编辑
  2015年7月5日
摘要: //时区间时间的转换#include#includeint difference(char *zone1,char *zone2){ char zone[32][10]={"UTC","GMT","BST","IST","WET","WEST","CET","CEST","EET","EEST"... 阅读全文
posted @ 2015-07-05 17:48 _noname 阅读(221) 评论(0) 推荐(0) 编辑
  2015年7月4日
摘要: //玛雅历#include#includeconst int NAMELEN=10;char month1[19][NAMELEN]={"pop","no","zip","zotz","tzec","xul","yoxkin","mol","chen","yax","zac","ceh","ma... 阅读全文
posted @ 2015-07-04 23:11 _noname 阅读(203) 评论(0) 推荐(0) 编辑
  2015年6月25日
摘要: //日历问题 #includeint type(int i);char week[7][10]={"Saturday","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday"};int year[2]={365,366};int m... 阅读全文
posted @ 2015-06-25 19:34 _noname 阅读(145) 评论(0) 推荐(0) 编辑
  2015年6月24日
摘要: //细菌繁殖#includeint main(){ int month[]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int n; scanf("%d",&n); int month_1,day_1,Num,month_2,day_2; for(int i... 阅读全文
posted @ 2015-06-24 11:22 _noname 阅读(147) 评论(0) 推荐(0) 编辑
  2015年6月19日
摘要: //poj:2733#include/*int main(){ int a; scanf("%d",&a); if(a%400==0||(a%4==0&&a%100!=0)) printf("Y"); else printf("N"); return 0;}*/int main(){ int... 阅读全文
posted @ 2015-06-19 13:21 _noname 阅读(119) 评论(0) 推荐(0) 编辑
  2015年6月18日
摘要: //poj:2975#include#includevoid decipher(char message[]);int main(){ char message[201]; gets(message); while(strcmp(message,"START")==0) { decipher(... 阅读全文
posted @ 2015-06-18 14:52 _noname 阅读(102) 评论(0) 推荐(0) 编辑
  2015年6月17日
摘要: //poj:2744#include#include int t,n; char str[101][101]; int searchMaxSubString(char *source) { int subStrLen=strlen(source); int sourceStrLen=str... 阅读全文
posted @ 2015-06-17 11:47 _noname 阅读(162) 评论(0) 推荐(0) 编辑
  2015年6月16日
摘要: 源码安装Apache,报错:Cannot use an external APR with the bundled APR-util httpd-2.2.29.tar.gz 解决此问题: 1、安装APR: [root@web httpd-2.2.29]# cd srclib/apr ... 阅读全文
posted @ 2015-06-16 17:45 _noname 阅读(787) 评论(0) 推荐(0) 编辑
摘要: //poj:2974#include#include#includechar map[]="2223334445556667*77888999*";char str[80],telNumbers[100000][9];int compare(const void *elem1,const voi... 阅读全文
posted @ 2015-06-16 12:14 _noname 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页