10 2019 档案

摘要:http://poj.org/problem?id=2159 解密用到了字母出现频率相同。 引用:https://blog.csdn.net/pp634077956/article/details/48319099 和https://blog.csdn.net/b2utyyomi/article/d 阅读全文
posted @ 2019-10-28 17:15 智人心 阅读(83) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=3299 求的不全是H,也有可能是T或D。 /* POJ_3299 humidex = temperature + h h = (0.5555)× (e - 10.0) e = 6.11 × exp [5417.7530 × ((1/273.16) 阅读全文
posted @ 2019-10-28 17:13 智人心 阅读(217) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1207 注意输入的两个数有可能先大后小 //POJ 1207 #include<stdio.h> int Length(int a){ int i = 1; while(true){ if(a==1){ return i; } if(a%2==0 阅读全文
posted @ 2019-10-28 15:36 智人心 阅读(116) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=3916 简单的删除连续重复项 //3916 #include<stdio.h> int main(){ int N,a[25]; int i,j,k,temp; while(true){ scanf("%d",&N); if(N==0){ bre 阅读全文
posted @ 2019-10-17 20:36 智人心 阅读(85) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=3913 简单的排序 //3913 #include<stdio.h> bool Order(int a,int b,int c){ if((a<=b&&b<=c)||(a>=b&&b>=c)){ return true; } return fal 阅读全文
posted @ 2019-10-17 20:13 智人心 阅读(105) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=3917 石头剪子布,比较简单,目前没什么可说的 #include<stdio.h> #include<string.h> int main(){ char a1[80],a2[80]; char a3[3] = {'R','S','P'}; in 阅读全文
posted @ 2019-10-15 22:37 智人心 阅读(94) 评论(0) 推荐(0) 编辑
摘要:象棋判断绝杀 参考https://blog.csdn.net/qq_34731703/article/details/54608740 同样的思路可以判断五子棋绝杀和和棋 #include<iostream> #include<cstdio> #include<algorithm> #include 阅读全文
posted @ 2019-10-14 17:45 智人心 阅读(116) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1017 //POJ_1017 //参考https://www.cnblogs.com/MashiroSky/p/5928053.html #include<stdio.h> int max(int a,int b){ if(a>b){ retur 阅读全文
posted @ 2019-10-13 23:14 智人心 阅读(80) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1007 题目要求按倒序数升序排列字符串,有一点要注意,输出时候要控制字符数,否则会OLE #include<stdio.h> char c[100][50]; int Step(char*a,int length){ int step = 0; 阅读全文
posted @ 2019-10-11 22:00 智人心 阅读(106) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1006 根据题意很自然地写出了暴破解法如下: //POJ_1006 #include<stdio.h> int main(){ int n,i,j,k; int p,q,r,d; n = 0; while(true){ scanf("%d %d 阅读全文
posted @ 2019-10-11 21:59 智人心 阅读(100) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1002 此题大意为输入一系列电话号,输出重复出现的电话号 输入:可以输入大写字母(除了Q和Z),数字或者横线(-) 字母按拼音九键的对应规则,横线为无意义输入 算法:先把输入整理为七位数字,存进b[N] 将b[N]用sort(b,b+n)排序 输 阅读全文
posted @ 2019-10-11 21:56 智人心 阅读(86) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1003 题目要求从1/2+1/3+......+1/(n+1)大于给定的一个浮点数,输出n #include<stdio.h> int main(){ int i; double sum,c; while(true){ scanf("%lf",& 阅读全文
posted @ 2019-10-11 21:56 智人心 阅读(79) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1000 题目要求输入两个整数,输出和 #include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d\n",a+b); return 0; } 扩展:输入两个大整数, 阅读全文
posted @ 2019-10-11 21:53 智人心 阅读(65) 评论(0) 推荐(0) 编辑
摘要:http://poj.org/problem?id=1001 大体思路为将底数转换为十进制整数,求幂,然后再转换回小数 Multiply()负责结果乘乘数 输出需要判断小数位数与尾数位数的关系 代码参考了https://www.cnblogs.com/jhldreams/p/3785315.html 阅读全文
posted @ 2019-10-11 21:50 智人心 阅读(234) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示