• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Object_S

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | | 管理
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页

2019年10月13日

T103489 【模板】边双连通分量
摘要: 题目地址易错点:设桥时需要考虑双向边. dfs时需要设置当前点的dcc.#include#includeusing namespace std;const int MAXN=1e5,MAXM=1e6;struc... 阅读全文
posted @ 2019-10-13 16:55 Object_S 阅读(90) 评论(0) 推荐(0)
 
T103440 【模板】缩点
摘要: 题目地址易错点:出栈时应将inStck[y]置空.#include#includeusing namespace std;const int MAXN=1e5,MAXM=1e6;struct Edge{ int ... 阅读全文
posted @ 2019-10-13 14:48 Object_S 阅读(117) 评论(0) 推荐(0)
 
P3388 【模板】割点(割顶)
摘要: 题目地址注意点:dfn[x]#includeusing namespace std;const int MAXN=4e4,MAXM=2e5;struct Edge{ int from,to,nxt;}e[MAXM... 阅读全文
posted @ 2019-10-13 09:22 Object_S 阅读(118) 评论(0) 推荐(0)
 
P1965 转圈游戏
摘要: 题目地址易错点:括号后面也需要mod运算.#include#includeusing namespace std;int mod;int poww(int x,int k){ int ans=1,tmp=x; w... 阅读全文
posted @ 2019-10-13 08:34 Object_S 阅读(80) 评论(0) 推荐(0)
 

2019年10月11日

P1540 机器翻译
摘要: 题目地址#include#include#includeusing namespace std;const int MAXN=1e4;bool inMemory[MAXN];//当前是否在内存中 int memo... 阅读全文
posted @ 2019-10-11 19:05 Object_S 阅读(124) 评论(0) 推荐(0)
 

2019年10月10日

P1059 明明的随机数
摘要: 题目地址#include#include#includeusing namespace std;const int MAXN=1e3;int a[MAXN];int main(){ int n; scanf("%... 阅读全文
posted @ 2019-10-10 21:41 Object_S 阅读(79) 评论(0) 推荐(0)
 
P1328 生活大爆炸版石头剪刀布
摘要: 题目地址注意点:可以直接用{}初始化数组.#include#includeusing namespace std;const int MAXN=2e3;int isWin[12][12]={{0,-1,1,1,-... 阅读全文
posted @ 2019-10-10 21:32 Object_S 阅读(115) 评论(0) 推荐(0)
 
P1307 数字反转
摘要: 题目地址注意点:小题小做. 逻辑清晰.#include#include#includeusing namespace std;char str[50];int main(){ cin>>str; int cnt=... 阅读全文
posted @ 2019-10-10 18:50 Object_S 阅读(94) 评论(0) 推荐(0)
 
P1190 接水问题
摘要: 题目地址注意点:每一个模块完成后都应进行测试. 编程前应当首先自行模拟每个样例.#include#include#includeusing namespace std;const int MAXN=2e4,MAX... 阅读全文
posted @ 2019-10-10 00:22 Object_S 阅读(144) 评论(0) 推荐(0)
 

2019年10月9日

P1179 数字统计
摘要: 题目地址#include#includeusing namespace std;int getTwoNum(int val){ int cnt=0; while(val){ int nowVal=val%10;... 阅读全文
posted @ 2019-10-09 21:41 Object_S 阅读(95) 评论(0) 推荐(0)
 
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页