原创 二分思路總結
1、常見的二分,只需確定最大最小的範圍在裏面找就行了 http://codeforces.com/problemset/problem/670/D2 2、變無序爲有序的二分,常用前綴和。 http://codeforces.com/pro
原创 我一定要把這個日了***的題記下來
http://acm.hust.edu.cn/vjudge/problem/35591 uva 230 題目不難,兩天錯了16發,而且想不出問題在哪,最後發現是分詞的時候分錯了,千不該萬不該用那個by分詞,你就那麼肯定作者的名字裏有by
原创 摘抄某女同學的博客,因爲是博客園的沒法轉載,只好搬運,自愧不如
原文出自:http://www.cnblogs.com/flipped/ 作者據我推測吧,應該是bupt的,估計也參加了弱校聯盟,,,甚至我可能都見過。。。。。圈子越來越小了 首先關於cin和cout的同步 std::ios::sync
原创 My_Head_File
/* * * Author : Triose * Email : [email protected] * Update_time : 2016.6.12 * */ //#include<bits/stdc++.h> #incl
原创 poj 兩道簡單線段樹 3264 && 3468
3264 http://poj.org/problem?id=3264 Balanced Lineup Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 46287
原创 Codeforces 327C 乘法逆元 + 費馬小定理 || 等比數列二分求和取模
C. Magic Five time limit per test 1 second memory limit per test 256 megabytes input standard input output stan
原创 codeforces 671B
B. Robin Hood time limit per test 1 second memory limit per test 256 megabytes input standard input output standa
原创 codeforces 645C
C. Enduring Exodus time limit per test 2 seconds memory limit per test 256 megabytes input standard input output
原创 poj 1088 / 3624兩道簡單DP
滑雪 Time Limit: 1000MS Memory
原创 codeforces 675C
標籤是有個datastruct,but! 這是個純思維題。。 C. Money Transfers time limit per test 1 second memory limit per test 256 megabyt
原创 歡迎使用CSDN-markdown編輯器
歡迎使用Markdown編輯器寫博客 本Markdown編輯器使用StackEdit修改而來,用它寫博客,將會帶來全新的體驗哦: Markdown和擴展Markdown簡潔的語法 代碼塊高亮 圖片鏈接和圖片上傳 LaTex數學公
原创 codeforces #354
唉,打得不好。。。第一題錯了一次就算了,第二題根本就想錯了!照着錯誤的方向想了半天,每次都錯在第4組數據。。回頭一想,覺得簡單,再一打,錯到了第28組數據,後來陸陸續續錯到了第36組,第1組。。第83組。。。。。。。好吧,掉分我也認了。。
原创 2016 Multi-University Training Contest 5
1003 http://acm.hdu.edu.cn/showproblem.php?pid=5783 Divide the Sequence Time Limit: 5000/2500 MS (Java/Others) Memor
原创 一些數據結構的實現
11988(uva) 意思是,你要輸入一個字符串,遇到 [ 時按home鍵, 遇到 ] 時按end鍵, 然後問你最終這個字符串是什麼 SampleInput This_is_a_[Beiju]_text [[]][][]Ha
原创 codeforces 675D
D. Tree Construction time limit per test 2 seconds memory limit per test 256 megabytes input standard input ou