原创 小白月賽13 F:小A的最短路(LCA + dfs)

鏈接:https://ac.nowcoder.com/acm/contest/549/F 來源:牛客網   題目描述 小A這次來到一個景區去旅遊,景區裏面有N個景點,景點之間有N-1條路徑。小A從當前的一個景點移動到下一個景點需要消耗一點

原创 2018年四川ICPC省賽J題  2813: JoJo’s Bizarre Adventure (思維 + STL)

 2813: JoJo’s Bizarre Adventure Time Limit: 1000 MS Memory Limit: 1048576 KB Total Submit: 60 Accepted: 12 Page View: 1

原创 LightOJ - 1038 Race to 1 Again(期望&概率DP)

Rimi learned a new thing about integers, which is - any positive integer greater than 1 can be divided by its divisors.

原创 lightoj-1027Dangerous Maze(期望&概率DP)

You are in a maze; seeing n doors in front of you in beginning. You can choose any door you like. The probability for c

原创 2019年ICPC浙江省省賽 (solve9/13)

A題看博客鏈接:https://blog.csdn.net/qq_38185591/article/details/90031185 B: Element Swapping (數學 + 思維) Time Limit: 1 Second  

原创 LightOJ - 1030 Discovering Gold(期望&概率DP)

You are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave can contain any amou

原创 期望&概率DP-bzoj3063

具體鏈接不發了,因爲涉及版權問題 Description 隨着新版百度空間的下線,Blog寵物綠豆蛙完成了它的使命,去尋找它新的歸宿。 給出一個有向無環的連通圖,起點爲1終點爲N,每條邊都有一個長度。綠豆蛙從起點出發,走向終點。 到達每一

原创 codeforces 1067F (Educational Codeforces Round 65 (Rated for Div. 2) F. Scalar Queries ) 樹狀數組計算貢獻

F. Scalar Queries time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standar

原创 Educational Codeforces Round 65 (Rated for Div. 2) E. Range Deleting (cf1067E)

E. Range Deleting time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standar

原创 U盤文件亂碼中病毒了,請教一下大家看看有沒有辦法解決。。。謝謝!!!

我先上圖 是變成了這樣子,所有文件都鎖住了,不能刪除也不能格式化U盤,查殺了一下病毒沒有查到,可以複製進去文件,複製進去的也可以複製出來。       發生的故事背景是這樣的,我們團隊去每個教室裏招新,U盤裏存着關於團隊的文件和宣講資料

原创 ICPC南昌邀請賽(B、G) 拉格朗日插值、 縮點

B:https://nanti.jisuanke.com/t/40254 做兩次插值,可以On得出a[n +1]的一項,然後前綴和,再做插值,針對每次查詢,On處理 ll a[maxn]; ll fac[maxn],invv[m

原创 Java虛擬機的總結(JYM)

看到了一篇很好的,先存上,慢慢看 https://blog.csdn.net/qq_41701956/article/details/81664921

原创 Codeforces Round #560 (Div. 3)ABCDEF1F2

今天下午總算把好久之前沒打的div3開了一場vp,補掉了,全暴力,除了自己讀題傻逼以外沒什麼好說的,, A Remainder standard input/output 1 s, 256 MB    x3717 B Polyc

原创 Codeforces Round #528 (Div. 2, based on Technocup 2019 Elimination Round 4) ABCD

A Right-Left Cipher standard input/output 1 s, 256 MB    x5307 B Div Times Mod standard input/output 1 s, 256 M

原创 Codeforces Round #562 (Div. 2) ABCD

A. Circle Metro time limit per test 1 second memory limit per test 256 megabytes input standard input output standard o