uacs2024

导航

2024年12月14日 #

leetcode 866. 回文质数

摘要: 866. 回文质数 想着开大数组,用质数筛选的方法。但是开大数组超内存了🤡 class Solution { public: bool isPrime[200000001]; bool isPalind(int &num){ string str = to_string(num); int i = 阅读全文

posted @ 2024-12-14 16:00 ᶜʸᵃⁿ 阅读(12) 评论(0) 推荐(0)