摘要:
P1055 ISBN号码 题目链接:https://www.luogu.org/problem/P1055 代码: c++ include using namespace std; int main() { freopen("in.txt","r",stdin); //freopen("out.tx 阅读全文
摘要:
P1200 [USACO1.1]你的飞碟在这儿Your Ride Is He… 题目链接:https://www.luogu.org/problem/P1200 代码: c++ include using namespace std; int main() { freopen("in.txt","r 阅读全文
摘要:
P1914 小书童——密码 题目链接:https://www.luogu.org/problem/P1914 代码: c++ include using namespace std; int main() { freopen("in.txt","r",stdin); //freopen("out.t 阅读全文
摘要:
P1028 数的计算 题目链接:https://www.luogu.org/problem/P1028 思路: 找规律。 1 :1 (1) 2: 2 (2,12) 3: 2 (3,13) 4: 4 (4,14,24,124) = 2+2 5: 4 (5,15,25,125) 6: 6 (6,16 阅读全文
摘要:
P1149 火柴棒等式 题目链接:https://www.luogu.org/problem/P1149 代码: c++ include using namespace std; int main() { //freopen("in.txt","r",stdin); //freopen("out.t 阅读全文
摘要:
P1478 陶陶摘苹果(升级版) 题目链接:https://www.luogu.org/problem/P1478 思路: 这题要比想象的要简单,因为在相同气力下,陶陶无论是摘高的还是低的都不影响,所以这题只需要把气力从小到大排就好了。 代码: c++ include using namespa 阅读全文
摘要:
P1618 三连击(升级版) 题目链接:https://www.luogu.org/problem/P1618 思路: 判断三个数的每一位加起来是否等于从1加到9,且每一位相乘是否等于从1乘到9; 代码: c++ include using namespace std; int main() { 阅读全文
摘要:
P1579 哥德巴赫猜想(升级版) 题目链接:https://www.luogu.org/problem/P1579 代码: c++ include using namespace std; int x,i; int y(int x){ //判断是否是素数; for(i=2;i n; if(y(n 阅读全文
摘要:
P2089 烤鸡 题目链接:https://www.luogu.org/problem/P2089 思路: 很简单,就是不停for循环; 代码: include using namespace std; int main() { //freopen("in.txt","r",stdin); // 阅读全文
摘要:
P1426 小鱼会有危险吗 题目链接:https://www.luogu.org/problem/P1426 代码: c++ include using namespace std; int main() { //freopen("in.txt","r",stdin); //freopen("out 阅读全文
摘要:
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 阅读全文