原创 Semi-prime H-numbers

UVA11105 線性篩即可。 #include <iostream> #include <algorithm> #include <cmath> #include <vector> using namespace std;

原创 整數以及浮點數的正則定義

文章目錄定義無符號整數(UnsignedInt)(UnsignedInt)(UnsignedInt)有符號整數(SignedInt)(SignedInt)(SignedInt)無符號浮點數(UnsignedFloat)(Unsig

原创 拓展GCD(轉載)

感謝大佬@角落的秋天的講解

原创 數字子串的和 str2int

UVA1673 這道題可以用廣義後綴自動機,不過陳鋒老師給我們講了一個巧妙地方法,使得這道題可以用普通的後綴自動機做。 題目大意: 給出NNN個完全由數字組成的字符串。計算將這個NNN的字符串的所有子串轉換爲整數後先去重再求和的

原创 coding關聯QT項目(Git)

下載git 設置環境變量。 在coding上創建分支Branch 綁定QtCreator 點擊文件/新建文件或項目/Import Project/Git Clone Repository:https://e.coding.net

原创 Coding Wiki文檔的應用

基本操作 首先,可以新建一個頁面 選中新建的頁面,點擊右上角的編輯。 右邊有個模板,可以選擇項目模板/Wiki模板,然後確定。 然後最可以往下寫markdown格式的文檔了。 markdown語法 編輯界面右邊有個問好圖標

原创 Numbers(模擬)

ZOJ - 3987 DreamGrid has a nonnegative integer n. He would like to divide n into m nonnegative integers a1,a2,…,am

原创 Trees in a Wood.

UVA10214 思路:對於座標爲(x,y)(x,y)(x,y)的樹,需要滿足gcd(x,y)=1gcd(x,y)=1gcd(x,y)=1這棵樹纔不會被阻擋。(同一條直線上的樹從第二顆起會被遮擋)。 根據對稱性,設第一象限的答案

原创 中國剩餘定理(孫子定理)(轉載)

大佬的講解,很清楚

原创 Yet Another Multiple Problem(同餘方程+BFS)

SP12810 There are tons of problems about integer multiples. Despite the fact that the topic is not original, the c

原创 String of CCPC(模擬)

ZOJ - 3985 BaoBao has just found a string (s) of length (n) consisting of ‘C’ and ‘P’ in his pocket. As a big fan

原创 Crusaders Quest(模擬)

ZOJ - 3983 Crusaders Quest is an interesting mobile game. A mysterious witch has brought great darkness to the gam

原创 自己的個人博客(hexo+coding+gittalk)

自己用hexo框架+coding搭建了一個個人博客,所有文章在兩個博客都會同步上傳。不得不說,butterfly主題真的好看,吹爆! 博客鏈接chrome食用更佳 歡迎來玩啊! 用的coding的臨時域名,所以沒有https,有空

原创 A Research Problem(歐拉函數,DFS)

UVA10837 由唯一分解定理: n=∏i=1k(piai)n=\prod\limits_{i=1}^{k}(p_i^{a_i})n=i=1∏k​(piai​​) 由歐拉函數定義: ϕ(n)=n∏i=1k(1−1pi)=∏i=