原创 The Preliminary Contest for ICPC Asia Nanjing 2019(數塔--擴展歐拉定理,)

題目鏈接:https://www.jisuanke.com/contest/3004?view=challenges B【數塔】 輸入a,b,m 求b層aaa⋅⋅a^{a^{a^{\cdot^{\cdot}}}}aaa⋅⋅的冪塔函

原创 The 2018 ACM-ICPC Chinese Collegiate Programming Contest

題目鏈接:https://www.jisuanke.com/contest/2991?view=challenges E F G I J K L M

原创 zoj 3981 Balloon Robot - - 2017秦皇島A題(思維題)

鏈接 Balloon Robot Time Limit: 1000 msMemory Limit: 65536 KB The 2017 China Collegiate Programming Contest Qinhuangda

原创 Gym - 101955K K - Let the Flames Begin【2018瀋陽onsite】(約瑟夫環問題,遞推,思維)

link:https://nanti.jisuanke.com/t/A2172 參考:https://www.cnblogs.com/greenty1208/p/9968462.html 分析: 約瑟夫環問題 題目中給出的m與k的

原创 hdu 2588 GCD(歐拉函數)+ bzoj 2818 gcd(歐拉篩)

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=2588GCD Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 3276

原创 hdu 6053 TrickGCD(莫比烏斯函數 或 ) *

link :http://acm.hdu.edu.cn/showproblem.php?pid=6053 TrickGCD Time Limit: 5000/2500 MS (Java/Others) Memory Limi

原创 2019nanchang icpc網絡賽E(雙端隊列+模擬)

題目鏈接:https://nanti.jisuanke.com/t/41352 John is not only a magic master but also a shuffling master. Famous though

原创 hdu 6558 The Moon(dp+概率+記憶化)*

題目鏈接:hdu 6558 The Moon Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total

原创 2019 ICPC南京網絡賽 E. K sum (莫比烏斯反演+杜教篩)**

題目鏈接:https://nanti.jisuanke.com/t/41302 Define function fn(k)=∑l1=1n∑l2=1n…∑lk=1n(gcd⁡(l1,l2,…,lk))2\displaystyle f

原创 hdu 5573 Binary Tree(2015年ICPC上海 B題)(二進制位運算,思維規律題)*

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5573Binary Tree Time Limit: 2000/1000 MS (Java/Others) Memory Lim

原创 zoj 3983 Crusaders Quest(~水~)

鏈接 Crusaders Quest is an interesting mobile game. A mysterious witch has brought great darkness to the game world,

原创 hdu 6736 Forest Program(2019CCPC秦皇島 F題)dfs做法

題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=6736Forest Program Time Limit: 2000/1000 MS (Java/Others) Memory

原创 2019華東雙基(I題數位dp,)

I題-不要666 鏈接:https://ac.nowcoder.com/acm/contest/1168/I 滿足以下3個條件中的一個,我們就認爲這個整數與6有關。 1.這個整數在10進制下某一位是6. 2.這個整數在10進制下的

原创 2018nanjing onsite J Prime Game(計數題)

題目鏈接:https://nanti.jisuanke.com/t/A2147 Given a sequence of nnn integers aia_iai​. Let mul(l,r)=∏i=lrai\text{mul}(l

原创 2018 焦作 onsite E - Resistors in Parallel(數學或規律+大數)

題目鏈接:http://codeforces.com/gym/102028/problem/EE. Resistors in Parallel time limit per test 2.0 s memory limit per