自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 AtCoder Beginner Contest 109 C - Skip

题解

2022-08-26 23:19:15 133 1

原创 AtCoder Beginner Contest 141 B - Tap Dance

B - Tap Dance

2021-10-26 22:59:24 203

原创 2021-10-21Codeforces Round #672 (Div. 2)B. Rock and Lever

B. Rock and Lever传送门Danik urgently needs rock and lever! Obviously, the easiest way to get these things is to ask Hermit Lizard for them.Hermit Lizard agreed to give Danik the lever. But to get a stone, Danik needs to solve the following task.You are g

2021-10-21 22:14:18 166

原创 Codeforces Round #742 (Div. 2)

C. Carrying Conundrum原题链接思维题题目给出了一种百位进1的加法运算方式。把给出的数据分为偶数位和奇数位,进而转换成10进1的加法运算。例如 1234(n) ----->13(a)和24(b)。a的组成可以为 0 + a,1 + ( a - 1) …a + 0共a + 1 种,b同理有b + 1 种。则结果只要把0 + n,和n + 0这种情况删除就行;ans = (a + 1) * (b + 1) - 2;代码#include<bits/stdc++.h&g

2021-10-13 14:55:30 57

原创 Codeforces Round #736 (Div. 2)

B. Gregor and the Pawn Gam好久不写题解了,写个题解记录自己自闭的一晚。非常简单的模拟题,可以从敌人的棋子角度考虑,也可以从Gregor的棋子角度考虑。#include<bits/stdc++.h> using namespace std;typedef long long LL;typedef pair<int,int> PII;const int N = 2e5 + 10; int T;char f[2][N];int n,m;

2021-10-12 22:29:25 50

原创 AtCoder Regular Contest 112 A题A-B = C

A - B = CAtCoder - arc112_a这是个找规律的题目。给出l 和r ,求满足A - B == C 的ABC有多少对;其中A,B,C,均在[ l, r ]中;当 l * 2 > r 时, 则答案必为0;当 l * 2 == r 时,则答案为1,即A= r,B = C = r 时;当 l * 2 < r 时,可发现,答案从2 * l 到 r 的差为1的等差数列的和等差数列求和公式我的代码#include<bits/stdc++.h>u

2021-08-11 08:31:14 145

原创 Codeforces Round #633 (Div. 2) B. Sorted Adjacent Differences

B. Sorted Adjacent Differences原题链接time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have array of n numbers a1,a2,…,an.Rearrange these numbers to satisfy |a1−a2|≤|a2−a3|≤…≤|an−1−an|, where |x| d

2021-07-13 08:55:12 84

原创 Codeforces Round #250 (Div. 2) B. The Child and Set

B - The Child and Set链接: B - The Child and Set.At the children’s day, the child came to Picks’s house, and messed his house up. Picks was angry at him. A lot of important things were lost, in particular the favorite set of Picks.Fortunately, Picks remem

2021-04-26 21:32:15 67

原创 Codeforces Round #250 (Div. 2) CodeForces - 437A

A - The Child and HomeworkOnce upon a time a child got a test consisting of multiple-choice questions as homework. A multiple-choice question consists of four choices: A, B, C and D. Each choice has a description, and the child should find out the only on

2021-04-26 21:27:15 63

原创 QLUACM Elimination For 2021 ACM Shandong Province Programming Contest (Clone) A

A. Special Week With Positive IntegersDescriptionPlease notice the shortage of the Memory limit!Special Week is now just wondering the minimum positive integer which is not in the integer sequence. For example, if the sequence is [2,4,3,4] then the answ

2021-04-16 22:16:28 44

原创 基础练习 十进制转十六进制

十进制转十六进制问题描述(蓝桥水题)  十六进制数是在程序设计时经常要使用到的一种整数的表示方式。它有0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F共16个符号,分别表示十进制数的0至15。十六进制的计数方法是满16进1,所以十进制数16在十六进制中是10,而十进制的17在十六进制中是11,以此类推,十进制的30在十六进制中是1E。  给出一个非负整数,将它表示成十六进制的形式。输入格式  输入包含一个非负整数a,表示要转换的数。0<=a<=2147483647输出格

2021-04-16 22:03:54 99

原创 基础练习 十六进制转十进制

十六进制转十进制时间限制:1.0s 内存限制:512.0MB问题描述  从键盘输入一个不超过8位的正的十六进制数字符串,将它转换为正的十进制数后输出。  注:十六进制数中的10~15分别用大写的英文字母A、B、C、D、E、F表示。样例输入FFFF样例输出65535AC code#include<bits/stdc++.h>using namespace std;typedef long long int LL;const int N=1e6+10;string

2021-04-16 22:00:54 134

原创 基础练习 十六进制转八进制

时间限制:1.0s 内存限制:512.0MB问题描述  给定n个十六进制正整数,输出它们对应的八进制数。输入格式  输入的第一行为一个正整数n (1<=n<=10)。  接下来n行,每行一个由09、大写字母AF组成的字符串,表示要转换的十六进制正整数,每个十六进制数长度不超过100000。输出格式  输出n行,每行为输入对应的八进制正整数。【注意】  输入的十六进制数不会有前导0,比如012A。  输出的八进制数也不能有前导0。样例输入  2  39  123AB

2021-04-16 21:58:58 85

原创 Educational Codeforces Round 107 (Rated for Div. 2) C题

C. Yet Another Card Decktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a card deck of n cards, numbered from top to bottom, i. e. the top card has index 1 and bottom card — index n. Each

2021-04-16 21:18:20 92

原创 Educational Codeforces Round 107 (Rated for Div. 2) B题

B. GCD Lengthtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given three integers a, b and c.Find two positive integers x and y (x>0, y>0) such that:the decimal representation of x

2021-04-16 21:16:53 203

原创 Educational Codeforces Round 107 (Rated for Div. 2) A题

Educational Codeforces Round 107 (Rated for Div. 2)A. Review Sitetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are an upcoming movie director, and you have just released your first movie. Yo

2021-04-16 21:09:17 77

原创 Gym - 102920E

E. Imprecise Computer本题思路和代码借鉴于大佬time limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputThe Imprecise Computer (IC) is a computer with some structural issue that it can compare two integers correctly only

2021-02-20 12:27:52 166 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除