随笔分类 -  POJ

摘要:#include<iostream> #include<cstring> #include<algorithm> using namespace std; const int maxn = 105; const int inf = 0x7f; int a[maxn],p[maxn],r[maxn], 阅读全文
posted @ 2021-07-23 15:22 智人心 阅读(33) 评论(0) 推荐(0)
摘要:#include<iostream> using namespace std; const int maxn = 1005; double data[maxn]; int f[maxn],g[maxn],n,ans; int main(){ ios::sync_with_stdio(false); 阅读全文
posted @ 2021-07-22 20:35 智人心 阅读(32) 评论(0) 推荐(0)
摘要:#include<iostream> #include<cstring> using namespace std; char dict[605][26]; char mes[305]; int dp[305]; int main(){ int W,L; while(cin>>W>>L){ cin>> 阅读全文
posted @ 2021-07-22 16:58 智人心 阅读(38) 评论(0) 推荐(0)
摘要:9796,in 10000 阅读全文
posted @ 2020-09-08 00:37 智人心 阅读(99) 评论(0) 推荐(0)
摘要:2993 strtok 2996 sort的cmp用法,格式化输出 2955 区间dp 3070 快速幂 3090 欧拉函数 3050 深度优先算法 *3032 双向队列 阅读全文
posted @ 2020-09-06 17:38 智人心 阅读(88) 评论(0) 推荐(0)
摘要:2140 2853 数学题 2828 线段树 2769 同余,sizeof的节约内存用法 2796 单调栈 http://blog.sina.com.cn/s/blog_48e3f9cd010002k9.html 2752 kmp next[] 2739 素数 2601 方程式求解 1118 几何, 阅读全文
posted @ 2020-09-04 20:11 智人心 阅读(129) 评论(0) 推荐(0)
摘要:memset的第三个参数是sizeof(int)*i,而不是sizeof(b) 阅读全文
posted @ 2020-08-31 20:47 智人心 阅读(80) 评论(0) 推荐(0)
摘要:50ac flag,in 20000 阅读全文
posted @ 2020-08-06 22:36 智人心 阅读(66) 评论(0) 推荐(0)
摘要:while(~scanf("%d",&n))等同于while(scanf("%d",&n)!=EOF) 阅读全文
posted @ 2020-07-30 10:30 智人心 阅读(86) 评论(0) 推荐(0)
摘要:poj1159 https://www.cnblogs.com/yueshuqiao/archive/2011/08/27/2155738.html 最长子序列 https://www.cnblogs.com/wb-DarkHorse/archive/2012/11/15/2772520.html 阅读全文
posted @ 2020-07-25 17:48 智人心 阅读(72) 评论(0) 推荐(0)
摘要:3302-3309 20200722 20:30-20200723 01:30 3302:20200722 21:00 ac,c和gcc的区别 3304:20200723 20:04 ac,http://blog.sina.com.cn/s/blog_6635898a0100n2lv.html 阅读全文
posted @ 2020-07-22 20:40 智人心 阅读(78) 评论(0) 推荐(0)
摘要:https://www.iteye.com/blog/ysshuai19-1312523 https://blog.csdn.net/mazheng1989/article/details/7058287 阅读全文
posted @ 2020-04-07 19:27 智人心 阅读(131) 评论(0) 推荐(0)
摘要:参考https://blog.csdn.net/lyy289065406/article/details/6642591 利用房间号分割走廊,每条“子走廊”都设置一个计数器,每经过一次+1,最大的次数X10就是答案 #include<iostream> using namespace std; #d 阅读全文
posted @ 2019-11-01 22:48 智人心 阅读(130) 评论(0) 推荐(0)
摘要: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 智人心 阅读(88) 评论(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 智人心 阅读(226) 评论(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 智人心 阅读(122) 评论(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 智人心 阅读(92) 评论(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 智人心 阅读(111) 评论(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 智人心 阅读(99) 评论(0) 推荐(0)
摘要:象棋判断绝杀 参考https://blog.csdn.net/qq_34731703/article/details/54608740 同样的思路可以判断五子棋绝杀和和棋 #include<iostream> #include<cstdio> #include<algorithm> #include 阅读全文
posted @ 2019-10-14 17:45 智人心 阅读(121) 评论(0) 推荐(0)