0w1

Entries from 2016-03-24 to 1 day

TOI 日記 Day11

今天早上忠毅學長來看我,超感動QQ 聊了蠻久,被鼓勵了很多,還被說什麼覺得高一就應該要進的XDDD 我不太相信 不過還是很開心 學長聽說也過得不差,只是有點頹廢什麼的,一學期12學分,外語被當 現在學長是資芽的python講師,我之後閒著有空也想去A掉一些水…

TOI 日記 Day10

感覺這幾天都一直想回去呢,待在這邊真是挺折磨的。每天打14個小時的程式,吃飽打,打飽吃,吃飽打,打飽吃,吃飽打,打飽睡。。這麼狂還是第一次 XDDD 這樣兩個禮拜累積起來就 200hr了,說起來還真不健康。。回去我絕對要頹廢個幾天。。。然後再繼續拼呢。 …

POI 19 Fibonacci Representation ( DP )

http://main.edu.pl/en/archive/oi/19/rozIDDFSで頑張ろうとしたが、当たり前にもTLEした。 24 / 100。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll MAXK = 4e17 + 4; int maxd; vector< ll > fib; bool dfs(ll k, int d){ if( k == 0 )</bits/stdc++.h>…

C++ Tricks - from CFR Blog

http://codeforces.com/blog/entry/15643 There are sure a lot of great techniques many great coders use, especially macros for debugging and so. I find myself not yet familiar with templates and multiple argument or so, but I will not bother…

IOI 15 Sorting ( Binary Search + Greedy )

PEG Judge - IOI '15 - Sorting 首先我們要想到,如果 k回合內能完成,那麼 k + 1回合內一定也能完成,這是很顯然的,因為對方換了什麼,換回來就行了。所以我們可以進行二分搜,現在問題就簡化成要在O( n ) 判斷 k回合內可不可能達成。 接著要發現,設原始…