原创 Project Euler Problem 56: Powerful digit sum【暴力】

PE其他解題報告請參考這裏,本題答案在留言首條 Powerful digit sum Problem 56 A googol (1010010^{100}10100) is a massive number: one followe

原创 Project Euler Problem 55: Lychrel numbers【暴力】

PE其他解題報告請參考這裏,本題答案在留言首條 Lychrel numbers Problem 55 If we take 47, reverse and add, 47 + 74 = 121, which is palindrom

原创 Project Euler Problem 54: Poker hands【模擬】

PE其他解題報告請參考這裏,本題答案在留言首條 Poker hands Problem 54 In the card game poker, a hand consists of five cards and are ranked,

原创 Python常用方法【自用】

一、文件相關 1.打開文件,讀寫操作 #其中path爲相關路徑,這個是想往裏寫文件,如果是想讀的話可以把最後一個字母換爲'r'即可 f = open(r'path', 'w') f = open(r"C:\Users\Administ

原创 Project Euler(歐拉計劃)解題報告【不斷更新】

先寫在前頭,裏面所有的題大都是我的個人解題報告,由於我的能力,不可避免的有許多不足,如果有解題有錯誤或者遺漏,還望指出,謝謝。 先簡單介紹下 ProjectEulerProject EulerProjectEuler Project

原创 Project Euler Problem 52: Permuted multiples【暴力】【stringsteam】

PE其他解題報告請參考這裏,本題答案在留言首條 Permuted multiples Problem 52 It can be seen that the number, 125874, and its double, 251748

原创 Project Euler Problem 43:Sub-string divisibility

PE其他解題報告請參考這裏,本題答案在留言首條 Sub-string divisibility Problem 43 The number, 1406357289, is a 0 to 9 pandigital number bec

原创 Project Euler Problem 51:Prime digit replacements【暴力】【按位枚舉】【stringstream】

PE其他解題報告請參考這裏,本題答案在留言首條 Prime digit replacements Problem 51 By replacing the 1st1^{st}1stdigit of the 2-digit number

原创 Projext Euler Problem 49:Prime permutations【枚舉】【暴力】

PE其他解題報告請參考這裏,本題答案在留言首條 Prime permutations Problem 49 The arithmetic sequence, 1487, 4817, 8147, in which each of th

原创 Project Euler Problem 48 : Self powers 【暴力】【同餘定理】

Self powers Problem 48 The series, 11+22+33+...+1010=104050713171^1 + 2^2 + 3^3 + ... + 10^{10} = 1040507131711+22+33

原创 Projext Euler Problem 1:Multiples of 3 and 5【暴力】【容斥】

PE其他解題報告請參考這裏,本題答案在留言首條 Multiples of 3 and 5 Problem 1 If we list all the natural numbers below 10 that are multiples

原创 Project Euler Problem 44 : Pentagon numbers【暴力】

PE其他解題報告請參考這裏,本題答案在留言首條 Pentagon numbers Problem 44 Pentagonal numbers are generated by the formula, Pn=n(3n−1)/2. T

原创 Project Euler Problem 53: Combinatoric selections【組合數】

PE其他解題報告請參考這裏,本題答案在留言首條 Combinatoric selections Problem 53 There are exactly ten ways of selecting three from five,

原创 Project Euler Problem 46: Goldbach's other conjecture【暴力】【素數篩】

PE其他解題報告請參考這裏,本題答案在留言首條 Goldbach’s other conjecture Problem 46 It was proposed by Christian Goldbach that every odd

原创 Projext Euler Problem 50 : Consecutive prime sum【暴力】【素數篩】【尺取法】

PE其他解題報告請參考這裏,本題答案在留言首條 Consecutive prime sum Problem 50 The prime 41, can be written as the sum of six consecutive