From 63648a18eced3c5c615d94b52fd54307e3548bbf Mon Sep 17 00:00:00 2001 From: declan-haojin Date: Thu, 17 Aug 2023 21:22:02 +0000 Subject: [PATCH] deploy: 73b2c762057a74f5c0dd238cc8c0ccca44449758 --- archives/index.html | 3 +- categories/adventure/index.html | 52 ++++++++++++++---- categories/adventure/index.xml | 2 +- categories/adventure/page/2/index.html | 50 +++++++++++++---- categories/adventure/page/3/index.html | 50 +++++++++++++---- categories/adventure/page/4/index.html | 47 +++++++++++++--- categories/adventure/page/5/index.html | 30 +++++++++- categories/adventure/page/6/index.html | 8 ++- categories/books/index.html | 5 +- categories/competitive-programming/index.html | 38 +++++++++++-- .../competitive-programming/page/2/index.html | 31 ++++++++++- categories/europe-road-trip/index.html | 51 +++++++++++++---- categories/europe-road-trip/index.xml | 2 +- categories/hacks/index.html | 31 +++++++++-- categories/index.html | 2 +- categories/index.xml | 2 +- categories/learn/index.html | 36 ++++++++---- categories/learn/page/2/index.html | 30 +++++++++- categories/learn/page/3/index.html | 44 ++++++++++++--- categories/learn/page/4/index.html | 38 +++++++++++-- categories/learn/page/5/index.html | 30 +++++++++- categories/learn/page/6/index.html | 8 ++- categories/life/index.html | 48 +++++++++++++--- categories/life/page/2/index.html | 50 +++++++++++++---- categories/life/page/3/index.html | 39 +++++++++++-- categories/machine-learning/index.html | 25 ++++++++- categories/metropolises/index.html | 50 +++++++++++++---- categories/metropolises/page/2/index.html | 44 ++++++++++++--- categories/metropolises/page/3/index.html | 26 ++++++++- categories/movies/index.html | 36 ++++++++++-- categories/national-parks/index.html | 50 +++++++++++++---- categories/national-parks/page/2/index.html | 5 +- categories/reflect/index.html | 48 +++++++++++++--- categories/reflect/page/2/index.html | 48 ++++++++++++---- categories/reflect/page/3/index.html | 50 +++++++++++++---- categories/reflect/page/4/index.html | 40 +++++++++++--- categories/reflect/page/5/index.html | 8 ++- categories/travel/index.html | 5 +- categories/vex-robotics/index.html | 23 ++++++-- index.html | 24 ++++++-- index.json | 2 +- index.xml | 2 +- page/10/index.html | 22 ++++++-- page/11/index.html | 22 ++++++-- page/12/index.html | 24 ++++++-- page/13/index.html | 22 ++++++-- page/14/index.html | 24 ++++++-- page/15/index.html | 24 ++++++-- page/16/index.html | 24 ++++++-- page/17/index.html | 22 ++++++-- page/18/index.html | 22 ++++++-- page/19/index.html | 18 ++++-- page/2/index.html | 24 ++++++-- page/20/index.html | 16 ++++-- page/21/index.html | 16 ++++-- page/22/index.html | 15 +++-- page/23/index.html | 18 +++++- page/24/index.html | 17 +++++- page/25/index.html | 24 ++++++-- page/26/index.html | 22 ++++++-- page/27/index.html | 20 +++++-- page/28/index.html | 20 +++++-- page/29/index.html | 19 +++++-- page/3/index.html | 24 ++++++-- page/30/index.html | 12 +++- page/31/index.html | 16 +++++- page/32/index.html | 16 +++++- page/33/index.html | 16 +++++- page/34/index.html | 16 +++++- page/35/index.html | 14 ++++- page/36/index.html | 16 +++++- page/37/index.html | 18 +++++- page/38/index.html | 16 ++++++ page/4/index.html | 24 ++++++-- page/5/index.html | 22 ++++++-- page/6/index.html | 24 ++++++-- page/7/index.html | 24 ++++++-- page/8/index.html | 24 ++++++-- page/9/index.html | 24 ++++++-- pages/index.html | 3 +- posts/2023-08-16-bratislava/index.html | 5 +- posts/2023-08-17-budapest/feature.jpg | Bin 0 -> 2509243 bytes ...c1bee1ea_2509243_1024x0_resize_q75_box.jpg | Bin 0 -> 147266 bytes ...c1bee1ea_2509243_1320x0_resize_q75_box.jpg | Bin 0 -> 234665 bytes ...ea_2509243_160x120_fill_q75_box_smart1.jpg | Bin 0 -> 5703 bytes ...ea_2509243_320x240_fill_q75_box_smart1.jpg | Bin 0 -> 17931 bytes ...9c1bee1ea_2509243_330x0_resize_q75_box.jpg | Bin 0 -> 19533 bytes ...9c1bee1ea_2509243_660x0_resize_q75_box.jpg | Bin 0 -> 66610 bytes posts/2023-08-17-budapest/index.html | 15 +++++ posts/index.html | 52 ++++++++++++++---- posts/index.xml | 2 +- posts/page/10/index.html | 42 ++++++++++++-- posts/page/11/index.html | 44 +++++++++++---- posts/page/12/index.html | 33 +++++++++-- posts/page/13/index.html | 32 ++++++++++- posts/page/14/index.html | 30 +++++++++- posts/page/15/index.html | 31 ++++++++++- posts/page/2/index.html | 50 +++++++++++++---- posts/page/3/index.html | 52 ++++++++++++++---- posts/page/4/index.html | 50 +++++++++++++---- posts/page/5/index.html | 50 +++++++++++++---- posts/page/6/index.html | 50 +++++++++++++---- posts/page/7/index.html | 50 +++++++++++++---- posts/page/8/index.html | 36 ++++++++---- posts/page/9/index.html | 32 +++++++++-- sitemap.xml | 2 +- tags/ai/index.html | 12 +++- tags/algorithm/index.html | 5 +- tags/canada/index.html | 20 +++++-- tags/city/index.html | 50 +++++++++++++---- tags/city/page/2/index.html | 32 +++++++++-- tags/coding/index.html | 13 ++++- tags/college/index.html | 50 +++++++++++++---- tags/college/page/2/index.html | 36 +++++++++--- tags/college/page/3/index.html | 11 +++- tags/competition/index.html | 46 +++++++++++++--- tags/competition/page/2/index.html | 31 ++++++++--- tags/exam/index.html | 48 +++++++++++++--- tags/exam/page/2/index.html | 32 ++++++++--- tags/exam/page/3/index.html | 10 +++- tags/exercise/index.html | 12 ++-- tags/family/index.html | 11 +++- tags/festival/index.html | 50 +++++++++++++---- tags/festival/page/2/index.html | 32 ++++++++--- tags/flight/index.html | 7 ++- tags/food/index.html | 39 ++++++++++--- tags/formula-1/index.html | 16 ++++-- tags/friend/index.html | 5 +- tags/friends/index.html | 5 +- tags/god/index.html | 8 ++- tags/hangout/index.html | 50 +++++++++++++---- tags/hangout/page/2/index.html | 30 +++++++--- tags/hiking/index.html | 48 ++++++++++++---- tags/hiking/page/2/index.html | 23 ++++++-- tags/history/index.html | 50 +++++++++++++---- tags/history/page/2/index.html | 27 +++++++-- tags/holiday/index.html | 48 ++++++++++++---- tags/holiday/page/2/index.html | 50 +++++++++++++---- tags/holiday/page/3/index.html | 36 ++++++++++-- tags/index.html | 2 +- tags/index.xml | 2 +- tags/island/index.html | 5 +- tags/java/index.html | 8 ++- tags/mexico/index.html | 5 +- tags/microsoft/index.html | 8 ++- tags/movie/index.html | 37 +++++++++++-- tags/museum/index.html | 28 ++++++++-- tags/nature/index.html | 15 ++++- tags/note/index.html | 3 +- tags/presentation/index.html | 28 ++++++++-- tags/project/index.html | 42 +++++++++++--- tags/project/page/2/index.html | 15 ++++- tags/python/index.html | 8 ++- tags/school/index.html | 50 +++++++++++++---- tags/school/page/2/index.html | 48 +++++++++++++--- tags/school/page/3/index.html | 32 ++++++++--- tags/school/page/4/index.html | 9 ++- tags/sports/index.html | 32 ++++++++--- tags/toefl/index.html | 42 +++++++++++--- tags/travel/index.html | 52 ++++++++++++++---- tags/travel/index.xml | 2 +- tags/travel/page/2/index.html | 48 ++++++++++++---- tags/travel/page/3/index.html | 52 ++++++++++++++---- tags/travel/page/4/index.html | 39 ++++++++++--- tags/travel/page/5/index.html | 14 ++++- tags/tutorial/index.html | 15 ++++- tags/utah/index.html | 5 +- tags/wedding/index.html | 5 +- 168 files changed, 3380 insertions(+), 829 deletions(-) create mode 100644 page/38/index.html create mode 100644 posts/2023-08-17-budapest/feature.jpg create mode 100644 posts/2023-08-17-budapest/feature_hu8b9c0645ce02301e78829959c1bee1ea_2509243_1024x0_resize_q75_box.jpg create mode 100644 posts/2023-08-17-budapest/feature_hu8b9c0645ce02301e78829959c1bee1ea_2509243_1320x0_resize_q75_box.jpg create mode 100644 posts/2023-08-17-budapest/feature_hu8b9c0645ce02301e78829959c1bee1ea_2509243_160x120_fill_q75_box_smart1.jpg create mode 100644 posts/2023-08-17-budapest/feature_hu8b9c0645ce02301e78829959c1bee1ea_2509243_320x240_fill_q75_box_smart1.jpg create mode 100644 posts/2023-08-17-budapest/feature_hu8b9c0645ce02301e78829959c1bee1ea_2509243_330x0_resize_q75_box.jpg create mode 100644 posts/2023-08-17-budapest/feature_hu8b9c0645ce02301e78829959c1bee1ea_2509243_660x0_resize_q75_box.jpg create mode 100644 posts/2023-08-17-budapest/index.html diff --git a/archives/index.html b/archives/index.html index cb3b0f40d..b648fd30a 100644 --- a/archives/index.html +++ b/archives/index.html @@ -3,7 +3,8 @@
Skip to main content

Archives

August 2023 (9)


Archives

August 2023 (10)


Adventure

2023


高精度模板

+  
define N 1e5 struct bign { int len; int v[N]; // 赋值 bign=bign bign operator = (char* s) { len=strlen(s); memset(v,0,sizeof(v)); for(int i=0;i<len;i++) v[i]=s[len-i-1]-'0'; return *this; } //赋值 bign=int bign operator = (int x) { char s[N]; sprintf(s,"%d",x); return *this=s; } // 高精加 bign operator + (const bign &b) const { bign c; memset(c.

树形DP

+  
二叉苹果树 思路 $dp[u][j表示节点u留下j条边的最大价值,每一次决策只有三种情况:剪左子树,剪右子树,两个都不剪 剪左边:dp[u][j]=dp[rson][j−1]+v[rson]dp[u][j]=dp[rson][j−1]+v[rson],同理,剪右边:dp[u][j]=dp[lson][j−1]+v[lson]dp[u][j]=dp[lson][j−1]+v[lson] 两边都不剪:dp[u][j]=dp[lson][j]+dp[rson][k−j−2]dp[u][j]=dp[lson][j]+dp[rson][k−j−2] 代码:记忆化搜索 int f[N][N]; bool t[N][N]; int dp(int u,int k) { if(t[u][k]) return f[u][k]; t[u][k]=1; if(!

随机数基本使用方法

+  
基本公式: 要取得[a,b)的随机整数,使用(rand() % (b-a))+ a; 要取得[a,b]的随机整数,使用(rand() % (b-a+1))+ a; 要取得(a,b]的随机整数,使用(rand() % (b-a))+ a + 1; 通用公式:a + rand() % n;其中的a是起始值,n是整数的范围。 要取得a到b之间的随机整数,另一种表示:a + (int)b * rand() / (RAND_MAX + 1)。 要取得0~1之间的浮点数,可以使用rand() / double(RAND_MAX)。