发现规律的题
代码随想录
代码随想录网站:https://programmercarl.com
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poj 1969 Count on Canton 摘规律
这道题挺恶心,闹得我都快要放弃了,最后憋一憋也正出来了,这是对耐性的考验 #includeusing namespace std;#define N 1000000int a[N];int main(){a[1]=1;for(int原创 2011-04-11 16:03:00 · 1095 阅读 · 0 评论 -
poj 2013 Symmetric Order 规律
#include#include#includeusing namespace std;char store[20][26];int set=1;int n;int visited[20];int main(){ while(cin>>n,原创 2011-04-10 17:04:00 · 728 阅读 · 0 评论 -
poj 2231 Moo Volume 暴力一定超时啊
这道题一看真是水体啊!!后来各种超市,so在网上看了一下别人的讲解 恍然大悟 啊!!这道题log(n)可以解决 排序之后抓住其每一段 的 利用 ,从头开始搜 每一段 用几次 说也说不明白 最直接的就是自己画个图 第一个猪搜到最后一个猪 再从第二个搜 到最后 画一哗 就明白了#include#includeusing namespace std;long long a[100原创 2012-03-09 14:20:48 · 1120 阅读 · 0 评论
分享