摘要: 1 #include<stdio.h> 2 #include<string.h> 3 4 int main() 5 { 6 int i,j,s,k;char str[20]; 7 char f1[15]={"- -- "}; 8 char f2[15]={"||||| |||"}; 9 char f 阅读全文
posted @ 2012-06-21 20:36 cddblog 阅读(179) 评论(0) 推荐(0)
摘要: View Code 1 Sumsets 2 时间限制(普通/Java):2000MS/20000MS 运行内存限制:65536KByte 3 总提交: 171 测试通过: 64 4 描述 5 6 Farmer John commanded his cows to search for different sets of numbers that sum to a given number. The cows use only numbers that are an integer power of 2. Here are the possible sets o... 阅读全文
posted @ 2012-06-21 10:45 cddblog 阅读(124) 评论(0) 推荐(0)
摘要: View Code 1 //asctime 将time_t所指的时间以字符串的形式写出来 2 //sleep() 延时函数 单位毫秒 3 #include <time.h> 4 #include<stdio.h> 5 #include<windows.h> 6 char *asctime(const time_t*timep); 7 int main() 8 { 9 10 11 time_t timep;12 time (&timep); 13 printf("%s",asctime(gmtime(&timep)));14 阅读全文
posted @ 2012-06-19 20:20 cddblog 阅读(84) 评论(0) 推荐(0)