原创 河南理工2019暑期選拔賽————我好菜
文章目錄[Problem A 小L的項鍊切割](http://acm.zzuli.edu.cn/problem.php?id=1526)[Problem B 小L的試卷](http://acm.zzuli.edu.cn/pro
原创 codeforces gym 102058——————HPU ICPC國慶訓練1
題目來源:https://codeforces.com/gym/102058 目錄E. FractionsK. Voronoi Diagram ReturnsL. Repetitive PalindromeM. Coke Chal
原创 2017 EC-Final 部分題解——————HPU ICPC國慶訓練2
目錄,點擊即可跳轉到相應題解[A. Chat Group](https://codeforces.com/gym/101775/problem/A)[C. Traffic Light](https://codeforces.com
原创 牛客練習賽51 A-E
目錄[A - abc](https://ac.nowcoder.com/acm/contest/1083/A)[B - 子串查詢](https://ac.nowcoder.com/acm/contest/1083/B)[C - 勾
原创 leetcode第 149 場周賽 1155. 擲骰子的N種方法
擲骰子的N種方法 這裏有 ddd 個一樣的骰子,每個骰子上都有 fff 個面,分別標號爲 1,2,...,f1, 2, ..., f1,2,...,f。 我們約定:擲骰子的得到總點數爲各骰子面朝上的數字的總和。 如果需要擲出的總點
原创 圖形學實驗3——————簡單種子填充算法
容易溢出,我是用Release模式才運行成功的 #include <math.h> #include <gl/glut.h> struct Point {//點的位置 GLint x; //typedef int GLint
原创 AtCoder Beginner Contest 137 D - Summer Vacation——————貪心,優先隊列
abc137_D - Summer Vacation Problem Statement There are NNN one-off jobs available. If you take the i-th job and co
原创 HDU 3836Equivalent Sets——————Kosaraju求強連通分量
Equivalent Sets Problem Description To prove two sets A and B are equivalent, we can first prove A is a subset of B
原创 POJ 2761 Feed the dogs——————區間第K大,主席樹
Feed the dogs Time Limit: 6000MS Memory Limit: 65536K Total Submissions: 23591 Accepted: 7498 Description Wind lo
原创 洛谷 P3834 ——————【模板】可持久化線段樹 1(主席樹)
P3834 【模板】可持久化線段樹 1(主席樹) #include<bits/stdc++.h> using namespace std; const int MAXN = 2e5+7; int n, m, cnt, rt[MA
原创 POJ 2104 K-th Number——————主席樹模板,區間第k大
K-th Number Time Limit: 20000MS Memory Limit: 65536K Total Submissions: 77307 Accepted: 27874 Case Time Limit: 20
原创 HDU 2665 Kth number——————區間第k大,主席樹
Kth number Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s)
原创 圖形學實驗02——————畫直線,橢圓,多邊形
文章目錄畫直線畫圓畫橢圓畫多邊形 畫直線 glBegin(GL_LINES) 接下來的兩個點將連在一起 glBegin(GL_LINES); glVertex2f(-0.5f, 0.5f); glVertex2f(0.5f,
原创 圖形學實驗01
在自己電腦上我用的是VS2019 OpenGL配置點這裏 畫三角形的代碼: #include <GL/glut.h> //需要正確安裝GLUT,安裝方法如預備知識中所述 void myDisplay(void) { //g
原创 牛客練習賽51 A-C
目錄[A - abc](https://ac.nowcoder.com/acm/contest/1083/A)[B - 子串查詢](https://ac.nowcoder.com/acm/contest/1083/B)[C - 勾