摘要: 传送门 enmmmm 快速做完了abc题,d题不会,挂机半天又闲得无事又交一次c 直接掉700+名。。。。。以最后一次ac为准 我傻了 我演我自己 A Card Game standard input/output 1 s, 256 MB Submit Add to favourites x8360 阅读全文
posted @ 2019-12-30 14:06 163467 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 题目 传送门 A Temporarily unavailable standard input/output 1 s, 256 MB 给一个线段ab, 问除去 c点圆心半径r覆盖的 线段多长,如果圆在线段外 直接输出 ab 长度就行, 若在线段内 则输出cout << max(b-a-max((mi 阅读全文
posted @ 2019-12-28 20:18 163467 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 传送门 A. Competitive Programmer standard input/output1 s, 256 MB x5632 模拟一下,需要能整除60 字符串中需要 能整除2 3 10,所以需要字符串各位数之和能整除3 并且有 一个偶数和一个0 或者两个0也行, 特殊情况 全为0 也行, 阅读全文
posted @ 2019-12-18 22:57 163467 阅读(243) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1272 A题 。。年轻人老想不一样的姿势。。。折腾半天直接枚举不香吗? 呸, 真香B题。。。没仔细看题 WA到自闭 C题。。题目都告诉公式 n*(n+1)/2 了, 折腾半天发现不是 2^n-1不是组合数-{n,0} 然后推出 题目给的 阅读全文
posted @ 2019-12-13 23:23 163467 阅读(161) 评论(0) 推荐(0) 编辑
摘要: DP assume the indices of the array are from 0 to N - 1. So let's define DP[i] to be the length of the LIS (Longest increasing subsequence) which is en 阅读全文
posted @ 2019-12-11 23:41 163467 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 你会发现欸, 程序怎么突然挂了 异常退出 那是因为上面的程序 vector 只是声明而已, 并没有开辟内存 你有如下两种选择 1) If you know the size of vector will be (in your case/example it's seems you know it) 阅读全文
posted @ 2019-12-09 00:11 163467 阅读(243) 评论(0) 推荐(0) 编辑
摘要: A 双十一特惠 (简单版) n <= 1e19, 1e9 > 1(8) https://www.cometoj.com/contest/79/problem/A?problem_id=4198 D 困难版 https://www.cometoj.com/contest/79/analysis // 阅读全文
posted @ 2019-12-08 23:55 163467 阅读(208) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1263 enmmmmmm 手速快是真的很有优势, C题 (看了卿学姐的视频)还可以用二分查找,每次将 i (1~n) x=n/i 压入, 然后查找等于 x 的最大下标, 缩小空间 代码如下 #include <bits/stdc++.h 阅读全文
posted @ 2019-12-05 13:10 163467 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.org/problem/P1092 题意: 给你三个n长度的字符串, 每个字母代表的值为 0 ……n-1, 要使字符串被替代以后得到的等式成立, 请输出n个数字 分别表示A B C …… 所代表的值 有个方法是暴力枚举 加 剪枝, 但是具体做法有点取巧首先记录三个 阅读全文
posted @ 2019-12-01 23:55 163467 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 樹上dp 枚舉從 l -> r 中的點做頂點下的左右子樹的分數, dp找每次最大的分數 阅读全文
posted @ 2019-11-18 16:50 163467 阅读(110) 评论(0) 推荐(0) 编辑