#24851: __想法


fire5386 (becaidorz)

School : 國立清華大學
ID : 115822
IP address : [219.91.6.182]
Last Login :
2025-07-06 21:03:54
d044. 00640 - Self Numbers -- UVa640 | From: [61.230.25.117] | Post Date : 2021-03-31 22:42

把self number當作質數篩就可以了 布一樣的地方是篩過的後面就不用重複再篩了

參考程式碼:

https://66lemon66.blogspot.com/2021/03/zerojudge-d044-00640-self-numbers-c.html

 
ZeroJudge Forum