2013年4月7日 晴

  昨天补概率论作业,没时间写,补上~

  今天天气很好,但是下午最后一节有课,所以打算晚上9点钟去跑步。

  不得不说,晚上的湘江边很美,尤其是天气很好的晚上,春天,也许是最适合跑步的季节,不冷不热,微风习习,一路上还看见不少跑步的男男女女,有的是为了锻炼身体,有的是为了减肥,有的单纯是因为爱好。

  今天跑步状态不错,很稳,时间,速度都控制得很准,正好半小时。然后在湘江边做了一下拉伸,稍微休息了一下,欣赏了一下美景,就心满意足地回来了。

  其实,晚上去跑步也别有一种感觉。以后,下午最后一节有课就晚上去跑,否则就下午。

  附上一段代码:

 1 #include <iostream>
 2 #include <cstdio>
 3 #include <cstdlib>
 4 #include <cstring>
 5 #include <cctype>
 6 #include <stack>
 7 #include <queue>
 8 #include <cmath>
 9 #include <algorithm>
10 #define lson l, m, rt<<1
11 #define rson m+1, r, rt<<1|1
12 using namespace std;
13 typedef long long int LL;
14 const int MAXN =  0x3f3f3f3f;
15 const int  MIN =  -0x3f3f3f3f;
16 const double eps = 1e-9;
17 const int dir[8][2] = {{0,1},{1,0},{0,-1},{-1,0},{-1,1},
18   {1,1},{1,-1},{-1,-1}};
19 
20 int main(void){
21 #ifndef ONLINE_JUDGE
22   freopen(".in", "r", stdin);
23 #endif
24   int day = 当前寿命;
25   while (1){
26     if (!极端天气 && !世界末日 && !挂了){
27       if ((time >= 16:00 && time <= 18:00) || (time >= 21:00 && time <= 22:00)){
28         run;
29       }
30     }
31     day++;
32     if (day == 寿命) break;
33   }
34 
35   return 0;
36 }

特意在OJ上交了……过不了……o(╯□╰)o

原文地址:https://www.cnblogs.com/liuxueyang/p/3006616.html