Skip to content

Instantly share code, notes, and snippets.

View mengxi-ream's full-sized avatar

MengXi mengxi-ream

View GitHub Profile
@mengxi-ream
mengxi-ream / ufair-wechat-article.css
Last active March 21, 2020 06:50
CSS for the uFair articles on WeChat
/* 自定义样式,实时生效,浏览器实时缓存 */
/* 全局属性
* 页边距 padding: 30px;
* 全文字体 font-family: ptima-Regular;
* 英文换行 word-break: break-all;
*/
#nice {
font-size: 14px; /* 字号:14px*/
color: #3C3C3C;
@mengxi-ream
mengxi-ream / dp1_output.out
Created March 4, 2020 04:27
Output for the first post about DP in Medium
How many numbers: 79
target: 9483034428
The option 1 chooses the index of the numbers:4 15 32 33 53 54 55 58 60 67 76 77 78 79
The sum of the chosen numbers:6324034428
The option 2 chooses the index of the numbers:4 15 16 27 32 33 53 54 58 60 67 75 76 77 78 79
The sum of the chosen numbers:6527034428
The option 3 chooses the index of the numbers:1 4 16 33 55 59 75 76 78
@mengxi-ream
mengxi-ream / dp1_input.in
Created March 4, 2020 04:12
Input for the first post about DP in Medium
-94830344.28
-207421.59
-3600000
-717.62
-1000
-5000000
-5000000
-2600000
-5000000
-5000000
@mengxi-ream
mengxi-ream / dp1_full_code.cpp
Last active March 4, 2020 04:24
Full C++ code for the first post about DP in Medium
#include <cstdio>
#include <algorithm>
#include <iostream>
using namespace std;
const int MAXN = 100;
const long long MOD_NUM = 1000000;
long long target, target_right;
int target_left[MAXN];