#include
#include
#include
#include
#define CHOICE 2
#define FILEPATH "/root/date.c"
char global_buffer[120];
//NO.1 使用全局声明的数组
#if CHOICE == 1
char *local_time(char* filename)
{
struct tm ...
分类:
其他好文 时间:
2014-08-02 12:48:53
阅读次数:
220
/* Note:Your choice is C IDE */
#include "stdio.h"
#include
#include
#define N 4
void main()
{
int a[N][N];
int b[N][N];
int z,x,c,d,p,i,j;
for(c=0;c<N;c++)
srand(time(0));
a[...
分类:
其他好文 时间:
2014-08-01 19:48:02
阅读次数:
195
Description
After coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists on seeing all the cities!And he does not mind w...
分类:
其他好文 时间:
2014-07-30 17:37:14
阅读次数:
306
一 Words 1 foible 小缺点,小癖好 e.g. You could do Ebay,or dating or indulge 纵容,沉溺于another foible of choice.你可以上eBay购物,或者约会,或者纵容另外一个弱点。 2 obnoxious 讨厌的 eg. My...
分类:
其他好文 时间:
2014-07-30 07:39:03
阅读次数:
274
Logging.c:/* Copyright (c) 2008-2012 Red Hat, Inc. This file is part of GlusterFS. This file is licensed to you under your choice of the GNU Lesse...
分类:
其他好文 时间:
2014-07-29 21:13:02
阅读次数:
382
1、获取标签在文档中的位置var left = $('.selected').offset().left;var top = $('.selected').offset().top;2、获取选中的radio值var val = $('.selected .ut-test-choice-problem...
分类:
Web程序 时间:
2014-07-22 22:42:33
阅读次数:
282
Each else for which the choice of assocated if is ambiguous shall be associated with the nearest possible if that would otherwise hava no correspondin...
分类:
其他好文 时间:
2014-07-18 14:25:57
阅读次数:
208
Update: July 10, 2014I got so many books in DB, so it is a better choice to focus on one book for each domain and finish those exercises.0. Blog --- u...
分类:
其他好文 时间:
2014-07-16 20:16:58
阅读次数:
177
找到规律之后本题就是水题了,不过找规律也不太容易的,证明这个规律成立更加不容易。
本题就是求step和mod如果GCD(最大公约数位1)那么就是Good Choice,否则为Bad Choice
为什么这个结论成立呢?
因为当GCD(step, mod) == 1的时候,那么第一次得到序列:x0, x0 + step, x0 + step…… 那么mod之后,必然下一次重复出现比x0大的数必...
分类:
其他好文 时间:
2014-07-08 19:16:21
阅读次数:
227
经典的稳定婚姻匹配问题
UVALive - 3989
Ladies' Choice
Time Limit: 6000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit] [Go Back] [Status]
Description
Prob...
分类:
其他好文 时间:
2014-06-28 08:35:28
阅读次数:
209