随笔分类 -  cf

摘要:2050 cf比赛 传送门 A Sum of 2050 standard input/output 1 s, 256 MB Submit Add to favourites x16113 //可以直接暴力数组枚举 也可以 一步步算出来 B Morning Joggingstandard input/ 阅读全文
posted @ 2021-05-08 00:52 163467 阅读(81) 评论(0) 推荐(0)
摘要:传送门 A Subtract or Divide standard input/output 1 s, 256 MB Submit Add to favourites x4501 很明显,如果n是偶数的话,可以直接变成2 然后再变1, 奇数的话就先-1 变偶数就好了, 然后 1 2 3需要特判一下 阅读全文
posted @ 2020-11-22 01:54 163467 阅读(118) 评论(0) 推荐(0)
摘要:传送门 A Fence standard input/output 1 s, 256 MB Submit Add to favourites x14752 //https://www.quora.com/How-do-I-find-the-fourth-side-of-quadrilateral-i 阅读全文
posted @ 2020-11-15 06:02 163467 阅读(133) 评论(0) 推荐(0)
摘要:传送门 A Ahahahahahahahaha standard input/output 1 s, 256 MB Submit Add to favourites x13926 题意给你一个长度为n的01数组,最后要变成一个奇数项之和 等于 减偶数项之和的数组, 你最多可以抹去n/2个 初始数组的 阅读全文
posted @ 2020-10-12 02:27 163467 阅读(115) 评论(0) 推荐(0)
摘要:传送门 A Permutation Forgery standard input/output 1 s, 256 MB Submit Add to favourites x16131 输入一个p数组,然后将相邻的两个数相加生成一个新数组,需要找到一个p‘数组生成的数组 排序后 和 p数组生产的数组 阅读全文
posted @ 2020-09-25 23:51 163467 阅读(169) 评论(0) 推荐(0)
摘要:传送门 A Distance and Axis standard input/output 1 s, 256 MB Submit Add to favourites x17891 当n大于等于k时, 假设可以在n内部找到一个这样的点 位置是x 那么 n-x-x=k 也就是 n-k=2x n与k奇偶性 阅读全文
posted @ 2020-09-13 04:48 163467 阅读(139) 评论(0) 推荐(0)
摘要:传送门 A LCM Problem standard input/output 2 s, 256 MB Submit x14222 看了一下,发现最小的LCM x,y 应该有一个是L, 当连续两个数 则 LCM为 L*(L+1) 如果是L 2L 那么LCM为2L,明显是最小的 如果 L 2L 不在 阅读全文
posted @ 2020-08-03 20:35 163467 阅读(248) 评论(0) 推荐(0)
摘要:传送门 A Orac and Factors standard input/output 2 s, 256 MB Submit Add to favourites x13533 k = 1时,n += d(n), k > 1时, n += 2, 因为第一步加了以后n肯定变成了一个偶数 O(log n 阅读全文
posted @ 2020-05-17 09:29 163467 阅读(185) 评论(0) 推荐(0)
摘要:构造\ 数学 容斥 贪心 阅读全文
posted @ 2020-05-15 00:25 163467 阅读(181) 评论(0) 推荐(0)
摘要:传送门 A Two Rabbits standard input/output 1 s, 256 MB Submit Add to favourites x12905 如果 两个兔子之间的差值为 a+b 的倍数 则有解, 否则 无解 B Longest Palindrome standard inp 阅读全文
posted @ 2020-05-12 06:15 163467 阅读(134) 评论(0) 推荐(0)
摘要:constructive algorithms greedy implementation 阅读全文
posted @ 2020-05-08 03:02 163467 阅读(203) 评论(0) 推荐(0)
摘要:看 Editorial 补题的蒟蒻 传送门 A Grade Allocation standard input/output 1 s, 256 MB Submit Add to favourites x8615 cout << min(sum(ai), m);B String Modificatio 阅读全文
posted @ 2020-03-12 13:30 163467 阅读(134) 评论(0) 推荐(0)
摘要:A Cow and Haybales standard input/output 2 s, 256 MB Submit Add to favourites x7258 模拟即可,B Cow and Friend standard input/output 2 s, 256 MB Submit Add 阅读全文
posted @ 2020-02-29 18:35 163467 阅读(149) 评论(0) 推荐(0)
摘要:A Erasing Zeroes standard input/output 1 s, 256 MB Submit Add to favourites x9251 把第一个1前面的0 和 最后一个1的0 从0的总数减去即可B National Project standard input/outpu 阅读全文
posted @ 2020-02-17 06:57 163467 阅读(167) 评论(0) 推荐(0)
摘要:传送门 A Equation standard input/output 3 s, 256 MB Submit Add to favourites x8521 手推一下, 把 1 2 单独输出, 其他奇数输出 3*n 2*n 偶数则输出 4*n 2*nB Modulo Equality standa 阅读全文
posted @ 2020-01-03 00:54 163467 阅读(139) 评论(0) 推荐(0)
摘要:传送门 A New Year Garland standard input/output 1 s, 256 MB Submit Add to favourites x6464 插空法,三种颜色,假设红色最多, 先把红色球放一排, 为了两个红色球不想碰 所以要往红色球的间隔中放入另外两种颜色的球 而如 阅读全文
posted @ 2020-01-02 00:11 163467 阅读(194) 评论(0) 推荐(0)
摘要:传送门 A Suits standard input/output 1 s, 256 MB Submit Add to favourites x7772 如题意,模拟B Blocks standard input/output 2 s, 256 MB Submit Add to favourites 阅读全文
posted @ 2019-12-31 16:09 163467 阅读(184) 评论(0) 推荐(0)
摘要:传送门 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 阅读(339) 评论(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 阅读(190) 评论(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 阅读(247) 评论(0) 推荐(0)