Codeforces
文章平均质量分 79
正经人谁在树上做dp
此人不懒但也没写签名
展开
-
Codeforces DeltixRoundSpring2021(Div.1+Div.2) 1523
Codeforces Deltix Round, Spring 2021 (open for everyone, rated, Div. 1 + Div. 2)传送门A. Game of Life思路这题代码写的比较丑。主要思路就是判断两个1之间如何填充,暴力输出即可。Code#include <bits/stdc++.h>using namespace std;typedef long long ll;typedef unsigned long long ull;ty原创 2021-06-01 02:17:36 · 390 阅读 · 0 评论 -
Codeforces Round #686 (Div. 3) 1454E Number of Simple Paths
Codeforces Round #686 (Div. 3) 1454E Number of Simple PathsProblem DescriptionYou are given an undirected graph consisting of n vertices and n edges. It is guaranteed that the given graph is connected (i. e. it is possible to reach any vertex from any ot原创 2020-11-25 15:59:30 · 222 阅读 · 0 评论 -
Codeforces Round #612 (Div. 1) - BenFromHRBUST
Codeforces Round #612 (Div. 1)比赛传送门A - GarlandProblem DescriptionVadim loves decorating the Christmas tree, so he got a beautiful garland as a present. It consists of n light bulbs in a single row. Each bulb has a number from 1 to n (in arbitrary order原创 2020-09-28 23:05:08 · 151 阅读 · 0 评论 -
Codeforces Round #671 (Div. 2) - BenFromHRBUST
Codeforces Round #671 (Div. 2)比赛传送门A - Digit GameCodedef main(): t = eval(input()) for cas in range(t): n = eval(input()) s = input() lens = len(s) odd, even = 0, 0 for i in range(lens): tmp =原创 2020-09-23 00:07:27 · 164 阅读 · 0 评论 -
Codeforces Round #667 (Div. 3) - BenFromHRBUST
Codeforces Round #667 (Div. 3)比赛传送门A - Yet Another Two Integers ProblemCodedef main(): T = eval(input()) for cas in range(T): a, b = map(int, input().split()) print("{}".format((abs(a-b)+9)//10)) main()B - Minimum Product原创 2020-09-06 23:09:45 · 166 阅读 · 0 评论 -
Codeforces Round #595 (Div. 3) - BenFromHRBUST
Codeforces Round #595 (Div. 3)比赛传送门A - Yet Another Dividing into TeamsCode#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,a,b) for(int i=(a);i<=(b)...原创 2020-02-10 22:45:33 · 129 阅读 · 0 评论 -
Codeforces Round #618 (Div. 2) - BenFromHRBUST
A. Non-zerotime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputProblem DescriptionGuy-Manuel and Thomas have an array a of n integers [a1,a2,…,an...原创 2020-02-10 22:21:21 · 862 阅读 · 0 评论 -
寒假训练20200130(补题)
C - Unusual Product CodeForces - 405CProblem DescriptionLittle Chris is a huge fan of linear algebra. This time he has been given a homework about the unusual square of a square matrix.The dot prod...原创 2020-02-01 00:53:41 · 247 阅读 · 0 评论 -
寒假训练20200126(补题)
B - Berstagram CodeForces - 1250AProblem DescriptionPolycarp recently signed up to a new social network Berstagram. He immediately published n posts there. He assigned numbers from 1 to n to all pos...原创 2020-01-27 01:12:40 · 257 阅读 · 0 评论 -
Codeforces Round #611 (Div. 3) - BenFromHRBUST
A Minutes Before the New YearProblem DescriptionNew Year is coming and you are excited to know how many minutes remain before the New Year. You know that currently the clock shows h hours and m minu...原创 2020-01-15 23:19:09 · 778 阅读 · 0 评论 -
Codeforces Round #598 (Div. 3) - BenFromHRBUST
Codeforces Round #598 (Div. 3)比赛传送门A - Payment Without ChangeProblem DescriptionYou have a coins of value n and b coins of value 1. You always pay in exact change, so you want to know if there exi...原创 2019-11-06 00:37:11 · 433 阅读 · 0 评论 -
Codeforces Round #597 (Div. 2) - BenFromHRBUST
Codeforces Round #597 (Div. 2)-----比赛传送门-----A - Good ol’ Numbers ColoringProblem DescriptionConsider the set of all nonnegative integers: 0,1,2,…. Given two integers a and b (1≤a,b≤104). We paint...原创 2019-11-04 00:51:21 · 477 阅读 · 0 评论