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 · 468 阅读 · 0 评论 -
Codeforces Round #686 (Div. 3) 1454E Number of Simple Paths
Codeforces Round #686 (Div. 3) 1454E Number of Simple Paths Problem Description You 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 · 358 阅读 · 0 评论 -
Codeforces Round #612 (Div. 1) - BenFromHRBUST
Codeforces Round #612 (Div. 1) 比赛传送门 A - Garland Problem Description Vadim 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 · 217 阅读 · 0 评论 -
Codeforces Round #671 (Div. 2) - BenFromHRBUST
Codeforces Round #671 (Div. 2) 比赛传送门 A - Digit Game Code def 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 · 220 阅读 · 0 评论 -
Codeforces Round #667 (Div. 3) - BenFromHRBUST
Codeforces Round #667 (Div. 3) 比赛传送门 A - Yet Another Two Integers Problem Code def 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 · 245 阅读 · 0 评论 -
Codeforces Round #595 (Div. 3) - BenFromHRBUST
Codeforces Round #595 (Div. 3) 比赛传送门 A - Yet Another Dividing into Teams Code #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 · 194 阅读 · 0 评论 -
Codeforces Round #618 (Div. 2) - BenFromHRBUST
A. Non-zero time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Problem Description Guy-Manuel and Thomas have an array a of n integers [a1,a2,…,an...原创 2020-02-10 22:21:21 · 1005 阅读 · 0 评论 -
寒假训练20200130(补题)
C - Unusual Product CodeForces - 405C Problem Description Little 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 · 314 阅读 · 0 评论 -
寒假训练20200126(补题)
B - Berstagram CodeForces - 1250A Problem Description Polycarp 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 · 323 阅读 · 0 评论 -
Codeforces Round #611 (Div. 3) - BenFromHRBUST
A Minutes Before the New Year Problem Description New 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 · 885 阅读 · 0 评论 -
Codeforces Round #598 (Div. 3) - BenFromHRBUST
Codeforces Round #598 (Div. 3) 比赛传送门 A - Payment Without Change Problem Description You 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 · 533 阅读 · 0 评论 -
Codeforces Round #597 (Div. 2) - BenFromHRBUST
Codeforces Round #597 (Div. 2) -----比赛传送门----- A - Good ol’ Numbers Coloring Problem Description Consider 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 · 557 阅读 · 0 评论
分享