In this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum. For example, fo
转载 2016-09-07 22:21:00
135阅读
2评论
【题意】求n个从原点出发的向量中相距最近的两个的编号【解题方法】极角排序!【AC code】#include using namespace std;const int maxn=100010;const double PI=acos(-1);int n;struct Point{ int x,y,id; long double ang; void r
原创 2022-04-20 10:12:22
53阅读
CF1555 场上没做出来 EF 的蒟蒻瑟瑟发抖。 \(A\) 直接 WA 了 \(4\) 发,然后 \(B,C,D\) 加起来不超过半个小时(不愧是我 A 需要制作 $n$​ 块饼,每次必须制作 $6/8/10$​ 个饼,每块饼需要 $2.5$​ 个单位时间。 求制作至少 $n$​ 块饼的最短时间 ...
转载 2021-07-31 18:33:00
80阅读
2评论
比赛链接:https://codeforces.com/contest/1535 懒得一题一题写博客了。直接扔在一起吧( A. Fair Playoff 题目链接:https://codeforces.com/contest/1535/problem/A 直接模拟。 #include <bits/s
转载 2021-06-05 20:07:00
164阅读
2评论
[TOC] Contest Info "Practice Link" |Solved|A|B|C|D|E1|E2|F| |: :|: :|: :|: :|: :|: :|: :|: :| |6/7|O|O|O|O|O|O| | O 在比赛中通过 Ø 赛后通过 ! 尝试了但是失败了 \ 没有尝试 So
转载 2019-10-25 07:45:00
225阅读
2评论
[TOC] Contest Info "Practice Link" |Solved|A|B|C|D|E|F|G| |: :|: :|: :|: :|: :|: :|: :|: :| |6/7|O|O|O|O|Ø|Ø| | O 在比赛中通过 Ø 赛后通过 ! 尝试了但是失败了 \ 没有尝试 Solu
转载 2019-10-10 09:46:00
134阅读
2评论
Description Consider the infinite sequence of integers: 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5.... The sequence is built in the following way: at
转载 2016-02-12 08:18:00
127阅读
2评论
▲ :待补完。 √ : 已补完。 (√)Educational Codeforces Round 114 (Rated for Div. 2) 进度:(6/6) 比赛链接 A 代码记录 B 代码记录 C 二分 代码记录 D 暴力、堆优化、去重技巧 代码记录 E 棋盘染色模型 题解 代码记录 F 转化 ...
转载 2021-09-28 17:40:00
55阅读
2评论
Link 好! 上分了! 好吧讲正题啦(没切 D 真是太不爽了) A:AB Balance 题意:给出一个只包含 A B 的字符串 \(S\) ,要求用最小的步数使其变成合法。 合法:字符串 \(S\) 所包含的 AB 和 BA 个数相同。 考虑将 AB 视作 +1 , 将 BA 视作 -1 ,那么 ...
转载 2021-10-30 20:42:00
107阅读
2评论
又是坐牢的一次比赛,大佬,菜菜,捞捞。
原创 2023-01-09 16:01:01
148阅读
Codeforces Educational Round 114 A:Regular Bracket Sequences Description 给定 \(n\),构造 \(n\) 个不同的长度为 \(2n\) 的匹配括号序列。 多测。 限制:\(1\le t,n\le 50\) Solution ...
转载 2021-10-15 19:28:00
72阅读
2评论
B. Average Sleep Time题目地址:http://codeforces.com/contest/808/problem/B思路:简单数组压缩,注意要用longAC代码:import java.text.DecimalFormat;import java.util.Scanner;public class Main { static long[] num
原创 2022-08-04 09:34:55
65阅读
这一场的D题真的好惨烈.......FST了几百人qwq......... 题目链接: "戳我" A Stickers and Toys 一个egg里面有可能仅有toy,或者仅有sticker,或者两者都有.给你egg,toy,sticker的数量,你不知道具体每个egg里面的情况.现在问你最坏情况
原创 2021-07-15 15:05:09
145阅读
Educational Codeforces Round 109 A 题意 配药,每次操作加一单位水或者配料,求最少需要多少次操作,使得最后配料占比为k%。 思路 容易想到,最差一定可以用100次操作(加k次配料,100-k次水)来完成目标,如果k与100有公因数,则可以优化。因为k是整数,所以化为 ...
转载 2021-05-21 23:49:00
192阅读
2评论
A - Water The Garden B - Tea Queue C - Swap Adjacent Elements D - Tanks E - Connected Components?
转载 2018-02-07 22:15:00
87阅读
Description Given a positive integer n, find k integers (not necessary distinct) such that all these integers are strictly greater than 1, and their p
转载 2017-04-17 09:43:00
105阅读
2评论
Description he only king stands on the standard chess board. You are given his position in format "cd", where c is the column from 'a' to 'h' and d is
转载 2016-08-24 10:23:00
113阅读
2评论
A. USB Flash Drivestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSean is trying to save a larg...
转载 2015-12-21 20:08:00
84阅读
2评论
A. Game Shopping 签. 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 #define N 1010 5 int n, m, c[N]; 6 queue <int> q; 7 8 int main() 9 { 10 whil
转载 2019-02-18 16:24:00
219阅读
2评论
http://codeforces.com/contest/938 A:sb题 //#pragma comment(linker, "/stack:200000000") //#pragma GCC optimize("Ofast,no-stack-protector") //#pragma GCC
转载 2018-03-15 16:42:00
74阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5