随笔分类 - cf
摘要:2050 cf比赛 传送门 A Sum of 2050 standard input/output 1 s, 256 MB Submit Add to favourites x16113 //可以直接暴力数组枚举 也可以 一步步算出来 B Morning Joggingstandard input/
        阅读全文
            
摘要:传送门 A Subtract or Divide standard input/output 1 s, 256 MB Submit Add to favourites x4501 很明显,如果n是偶数的话,可以直接变成2 然后再变1, 奇数的话就先-1 变偶数就好了, 然后 1 2 3需要特判一下 
        阅读全文
            
摘要:传送门 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
        阅读全文
            
摘要:传送门 A Ahahahahahahahaha standard input/output 1 s, 256 MB Submit Add to favourites x13926 题意给你一个长度为n的01数组,最后要变成一个奇数项之和 等于 减偶数项之和的数组, 你最多可以抹去n/2个 初始数组的
        阅读全文
            
摘要:传送门 A Permutation Forgery standard input/output 1 s, 256 MB Submit Add to favourites x16131 输入一个p数组,然后将相邻的两个数相加生成一个新数组,需要找到一个p‘数组生成的数组 排序后 和 p数组生产的数组 
        阅读全文
            
摘要:传送门 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奇偶性
        阅读全文
            
摘要:传送门 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 不在 
        阅读全文
            
摘要:传送门 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
        阅读全文
            
摘要:传送门 A Two Rabbits standard input/output 1 s, 256 MB Submit Add to favourites x12905 如果 两个兔子之间的差值为 a+b 的倍数 则有解, 否则 无解 B Longest Palindrome standard inp
        阅读全文
            
摘要:constructive algorithms    greedy    implementation
        阅读全文
            
摘要:看 Editorial 补题的蒟蒻 传送门 A Grade Allocation standard input/output 1 s, 256 MB Submit Add to favourites x8615 cout << min(sum(ai), m);B String Modificatio
        阅读全文
            
摘要: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
        阅读全文
            
摘要: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
        阅读全文
            
摘要:传送门 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
        阅读全文
            
摘要:传送门 A New Year Garland standard input/output 1 s, 256 MB Submit Add to favourites x6464 插空法,三种颜色,假设红色最多, 先把红色球放一排, 为了两个红色球不想碰 所以要往红色球的间隔中放入另外两种颜色的球 而如
        阅读全文
            
摘要:传送门 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
        阅读全文
            
摘要:传送门 enmmmm 快速做完了abc题,d题不会,挂机半天又闲得无事又交一次c 直接掉700+名。。。。。以最后一次ac为准 我傻了 我演我自己 A Card Game standard input/output 1 s, 256 MB Submit Add to favourites x8360
        阅读全文
            
摘要:题目 传送门 A Temporarily unavailable standard input/output 1 s, 256 MB 给一个线段ab, 问除去 c点圆心半径r覆盖的 线段多长,如果圆在线段外 直接输出 ab 长度就行, 若在线段内 则输出cout << max(b-a-max((mi
        阅读全文
            
摘要:传送门 A. Competitive Programmer standard input/output1 s, 256 MB x5632 模拟一下,需要能整除60 字符串中需要 能整除2 3 10,所以需要字符串各位数之和能整除3 并且有 一个偶数和一个0 或者两个0也行, 特殊情况 全为0 也行,
        阅读全文
            
                    
                
浙公网安备 33010602011771号