Last active
January 26, 2018 08:21
-
-
Save xiang578/2a6b5649424241a2721c1f526069a96c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* *********************************************** | |
Author :xiang578 | |
Email :[email protected] | |
Created Time :Thu Jan 25 19:59:52 2018 | |
File Name :markdown-lists-create.cpp | |
************************************************ */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <iostream> | |
#include <algorithm> | |
#include <vector> | |
#include <queue> | |
#include <set> | |
#include <map> | |
#include <string> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <time.h> | |
using namespace std; | |
vector<int>v[100]; | |
int main() | |
{ | |
//freopen("in.txt","r",stdin); | |
//freopen("out.txt","w",stdout); | |
for(int i=0;i<100;i++) v[i].clear(); | |
int mx = 0; | |
for(int i=1;i<=36;i+=3) | |
v[i/3+1].push_back(i); | |
for(int i=1;i<=36;i+=3) | |
{ | |
v[i/3+1].push_back(i); | |
v[i/3+2].push_back(i); | |
v[i/3+4].push_back(i); | |
v[i/3+8].push_back(i); | |
v[i/3+15].push_back(i); | |
v[i/3+30].push_back(i); | |
mx = i/3+30; | |
} | |
int m=1,d=24; | |
for(int i=1;i<=mx;i++) | |
{ | |
int j=0; | |
if(v[i].size()==0) continue; | |
if(i<=12) printf("- [ ] %d月%d日 L%d~%d: \n",m,d,v[i][0],v[i][0]+2),j++; | |
for(;j<v[i].size();j++) | |
printf("- [ ] %d月%d日 *L%d~%d: \n",m,d,v[i][j],v[i][j]+2); | |
d++; | |
if(m==1&&d==32) m=2,d=1; | |
if(m==2&&d==29) m=3,d=1; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment