原文:Codeforces Round #734 (Div. 3) A~D1 个人题解

比赛链接:Here A. Polycarp and Coins 签到 题意: 我们有任意个面额为 和 的硬币去支付 n 元账单, 现在请问怎么去分配数额使得 c c n 并且要最小化 c c 贪心, 很容易想到最小化 c c 等于 或 B . Wonderful Coloring easy 题意: 给定长度为 n 的字符串和 k 种颜色, 对于字符串每一个位置要么不涂颜色,要么每种颜色的字母都要不 ...

2021-07-24 10:20 4 140 推荐指数:

查看详情

Codeforces Round #734 (Div. 3)个人题解

Codeforces Round #734 (Div. 3)个人题解 博主前言:萌新第一次写题解,还请dalao们轻点喷QAQ 比赛链接:Codeforces Round #734 (Div. 3) A题 Polycarp and Coins 题目大意: 你有两种硬币,一种是一元的,一种 ...

Tue Jul 27 00:40:00 CST 2021 9 193
Codeforces Round #696 (Div. 2) A~D题解

原题链接:Codeforces Round #696 (Div. 2) A. Puzzle From the Future 显然直接枚举每一位,能填1就填1. 代码 B. Different Divisors 显然取最近质数 代码 C. Array Destruction ...

Wed Jan 20 20:09:00 CST 2021 0 466
Educational Codeforces Round 114 (Rated for Div. 2) A~D题解

本场链接:Educational Codeforces Round 114 (Rated for Div. 2) A. Regular Bracket Sequences 由于只需要构造 \(n\) 种,所以构造第 \(i\) 的时候可以让最左端的是一个长度为 \(i\) 的大括号,后面 ...

Wed Sep 22 05:22:00 CST 2021 0 150
Educational Codeforces Round 88 (Rated for Div. 2) A-D题解

链接:https://codeforces.com/contest/1359 A. Berland Poker 题意: 现在有$n$张牌,$m$张王,共有$k$个人,每个人分得$\frac{k}{n}$张牌,你的得分是你手中王牌的个数减去其余人中拥有最多王牌的个数,求最大得分 思路 ...

Fri May 29 22:30:00 CST 2020 4 496
Codeforces Round #704 (Div. 2) 题解

本场链接:Codeforces Round #704 (Div. 2) 闲话 大Fst场,排名从781->449,给我看傻了都.D题非常依赖特判,感觉我也不大能讲清楚所有情况.E的话好像也比较码农,正在写,可能晚上做出来了就更新,没做出来的话明天更. A. Three swimmers ...

Wed Feb 24 06:13:00 CST 2021 0 343
Codeforces Round #702 (Div. 3) 题解

本场链接:Codeforces Round #702 (Div. 3) A. Dense Array B. Balanced Remainders C. Sum of Cubes 思路 枚举\(b\),由范围可以知道\(1 \leq b \leq 10^4\).\(a\)可以求 ...

Wed Feb 17 18:59:00 CST 2021 0 273
Codeforces Round #699 (Div. 2) A~E 题解

本场链接:Codeforces Round #699 (Div. 2) A. Space Navigation 题目大意:有一个飞船一开始在\((0,0)\),有一个操作列表\(s\),每个位置表示一个上下左右的移动操作.有一个目的地坐标是\((px,py)\).但是这个操作序列不一定能够正确 ...

Sat Feb 06 22:11:00 CST 2021 0 404
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM