摘要:
P1014 Cantor表 题目链接:https://www.luogu.org/problem/P1014 思路: 找规律,按每一斜行来看,则: 第一行: 1/1; //总数:1; 第二行: 1/2 2/1; //总数:1+2=3; 第三行: 3/1 2/2 1/3; //总数:1+2+3=6 阅读全文
摘要:
P1307 数字反转 题目链接:https://www.luogu.org/problem/P1307 代码 c++ include using namespace std; int main() { //freopen("in.txt","r",stdin); //freopen("out.txt 阅读全文
摘要:
P1598 垂直柱状图 题目链接:https://www.luogu.org/problem/P1598 代码: c++ include using namespace std; int main() { //freopen("in.txt","r",stdin); //freopen("out.t 阅读全文
摘要:
P1217 [USACO1.5]回文质数 Prime Palindromes 题目链接:https://www.luogu.org/problem/P1217 以下是思路: 1.先找出1到100000000的所有回文数字; 2.再判断这些数里的质数; 3.所有偶数位(除11外)的回文数都不是质数; 阅读全文