Lyriv's blog
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
  • 友链
  • 相册

Codeforces 1826B_Lunatic Never Content

Codeforces 1826B Lunatic Never Content题目大意:给出一堆数,各自取同一个mod,让你判断当mod取多少时,这堆数可构成回文串。 解题思路:考察gcd,连续gcd 代码:12345678910111213141516171819202122#include<bits/stdc++.h>using namespace std;typedef long
2023-09-10
XCPC > Codeforces > 1000
#思维 #数学

Codeforces 1826A_Trust Nobody

Codeforces 1826A Trust Nobody题目大意:一群人中有人说谎,每人报出他所知道的说谎人数,让你根据信息判断说谎人数是否能确定。 解题思路:这题可以假设一个i作为假想说谎人数,再通过模拟即可解题 代码:12345678910111213141516171819202122232425262728293031#include<bits/stdc++.h>using
2023-05-10
XCPC > Codeforces > 800
#思维 #模拟

typora配置图片自动上传gihub图床

​ 最近将博客从github-page静态托管搬到了服务器,不能豪横使用流量,于是萌生了建立图床的想法,对比了很多方案,还是直接使用github托管最为合适。 ​ 但这又产生一个问题,如果只是单纯使用git推送图片会很麻烦,写作体验感不好,又不想使用PicGo等软件,于是有此文。 进入typora -> 偏好设置 -> 图像 到upgit-releases拉取最新程序 下载好
2023-02-06
技术笔记 > 配置笔记 > Typora > Upgit > GitHub
#Typora #Upgit #写作所需

Codeforces 1750A. Indirect Sort

A. Indirect Sort You are given a permutation a1,a2,…,an of size n, where each integer from 1 to n appears exactly once. You can do the following operation any number of times (possibly, zero): Choose
2022-11-20

Codeforces 1744D. Divisibility by 2^n

D. Divisibility by 2^ntime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of positive integers a1,a2,…,an. Make the product of
2022-11-19

Codeforces 1744B. Even-Odd Increments

time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given n of integers a1,a2,…,an. Process q queries of two types: query of the form “0 xj”:
2022-11-18

Codeforces 1744C. Traffic Light

C. Traffic Lighttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou find yourself on an unusual crossroad with a weird traffic light. That traffic
2022-11-18

Codeforces 1605C. Dominant Character

Ashish has a string ss of length nn containing only characters ‘a‘, ‘b‘ and ‘c‘. He wants to find the length of the smallest substring, which satisfies the following conditions: Length of the substri
2022-11-17

Codeforces 1255B. Fridge Lockers

Hanh lives in a shared apartment. There are nn people (including Hanh) living there, each has a private fridge. nn fridges are secured by several steel chains. Each steel chain connects two different
2022-11-16

Codeforces 1255B. Fridge Lockers

Hanh lives in a shared apartment. There are nn people (including Hanh) living there, each has a private fridge. nn fridges are secured by several steel chains. Each steel chain connects two different
2022-11-16
123

搜索

Hexo Fluid
CSDN Github
总访问量 次 总访客数 人
桂ICP备2024035342号