Codeforces
文章平均质量分 82
Codeforces
joe_zxq的编程世界
我不懒,却没有添加简介
展开
-
2022年5月21日刷题
1684A - Digit Minimization点击打开题目题目大意:十进制表示法中有一个不带零的整数n。爱丽丝和鲍勃正在用这个整数玩游戏。爱丽丝先开始。他们轮流玩游戏。轮到Alice时,她必须交换位于不同位置的整数的任意两位数字。轮到鲍勃时,他总是去掉整数的最后一位。当只剩下一个数字时,游戏结束。如果爱丽丝玩得很好,你必须找到她最终能得到的最小整数。题目思路:如果是两位,直接输出个位,否则输出最小数字即可。AC代码:#include<bi...原创 2022-05-21 14:45:13 · 534 阅读 · 0 评论 -
Codeforces Round #784 (Div. 4) A~D题详解
呵呵,废话不多说,直接上目录。Dashboard - Codeforces Round #784 (Div. 4) - Codeforceshttps://codeforces.com/contest/1669目录1669A - Division?1669B - Triple1669C - Odd/Even Increments1669D - Colorful Stamp1669A - Division?点击打开题目题目大意:Codeforces将其用户按.原创 2022-05-19 21:55:17 · 567 阅读 · 0 评论 -
2022年5月18日刷题
继续Brush,brush,brush.友情提醒:找到CodeForces最近的5场比赛:比赛名称:CodeforcesRound#792(Div.1+Div.2)比赛时间:2022-05-1922:35:00比赛链接:https://codeforces.com/contest/1684比赛名称:CodeforcesRound#793(Div.2)比赛时间:2022-05-2222:35:00比赛链接:https://codeforces.com/contes...原创 2022-05-18 21:25:32 · 233 阅读 · 0 评论 -
2022年5月17日刷题
Today's Plan:中文:刷刷刷,向codeforces进军!英文:Brush, brush, march towards codeforces!总觉得把刷刷刷翻译成Brush, brush有点不对劲,但……请见下图。但至少,百度翻译器是官方网站……好,切入正题 \(^o^)/~101A -Homework点击打开题目题目大意:给你数k和字符串...原创 2022-05-17 22:00:42 · 138 阅读 · 0 评论 -
2022年5月8日刷题
加油水codeforces。https://codeforces.com/https://codeforces.com/988A - Diverse Team点击打开题目题目大意:题意:给你n个数字,能不能在里面找到k个不同的数字,如果能就输出YES,再输出这些数字的下标;不能就输出NO。题目思路:开数组水过去。AC代码(0 ms,0 KB。完全逃避TLE和内存超限):#include<bits/stdc++.h>#define AC retur.原创 2022-05-08 13:12:44 · 285 阅读 · 0 评论 -
2022年5月7日刷题
继续干codeforces。https://codeforces.com/https://codeforces.com/7A - Kalevitch and Chess点击打开题目题目大意:给出8*8的国际象棋棋盘,每次可以把一行或者一列变成W,问全部变成W需要操作多少次。题目思路:统计最少需要的操作的行或者列的个数,按照贪心的思想,如果某行全部为B,肯定会操作这一行,否则就可能会操作列。AC代码:#include<bits/stdc++.h>...原创 2022-05-07 22:02:00 · 451 阅读 · 0 评论 -
2022年5月5日刷题
开干codeforces,日期2022年5月5日,立夏。目录3A - Shortest path of the king5A - Chat Server's Outgoing Traffic3A - Shortest path of the king点击打开题目题目大意:这道题是求从棋盘一个位置到另一个位置的最短距离,可以按照上下左右对角线八个方向进行移动。题目思路:首先应该把棋盘字母坐标转换为数字判断横纵坐标差值各是多少,由于一步棋可以同时改变横纵坐标,所以移动原创 2022-05-05 22:08:01 · 238 阅读 · 0 评论 -
Coderforces 字符串水题合集
今天我们聊聊 Coderforces 字符串题目合集。字符串就是string。这是string的百度翻译,我们要谈的是画框的。↓string是C++、java、VB等编程语言中的字符串,字符串是一个特殊的对象,属于引用类型。 在java、C#中,String类对象创建后,字符串一旦初始化就不能更改,因为string类中所有字符串都是常量,数据是无法更改,由于string对象的不可变,所以可以共享。对String类的任何改变,都是返回一个新的String类对象。 C++标准库中string类以原创 2022-05-04 15:08:44 · 1363 阅读 · 0 评论 -
第11期《codeforces 1167A - Telephone Number 题解 》
题目描述如下:A. Telephone Numbertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA telephone number is a sequence of exactly11digits, where the first digit is8. For example, the sequence...原创 2021-12-20 21:35:35 · 157 阅读 · 0 评论 -
第9期《codeforces 1547A - Shortest Path with Obstacle 题解 》
AC代码:#include<bits/stdc++.h>using namespace std;int e[1005][1005];int main(){ int n; cin>>n; while(n--) { memset(e,0,sizeof(e)); int x1,y1,x2,y2,a,b; cin>>x1>>y1>>x2>>y2>&...原创 2021-12-11 15:08:17 · 377 阅读 · 0 评论 -
第13期《codeforces 236A - Boy or Girl 题解 》
题目描述如下:A. Boy or Girltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThose days, many boys use beautiful girls' photos as avatars in forums. So it is pretty hard to tell the gender of原创 2022-01-02 17:11:06 · 336 阅读 · 0 评论 -
Cordefoces 675B - Restoring Painting 题解
Problem - 675B - CodeforcesCodeforces. Programming competitions and contests, programming communityhttps://codeforces.com/problemset/problem/675/BB. Restoring Paintingtime limit per test1 secondmemory limit per test256 megabytesinputstandard原创 2022-04-09 12:20:42 · 66 阅读 · 0 评论