![](https://img-blog.csdnimg.cn/20190918140213434.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
CSES
文章平均质量分 52
Bamboo_Day
这个作者很懒,什么都没留下…
展开
-
Permutations
.又是一个美好的周三,竹子又逃课来写博客了,今天带来的还是CSES的题目上题目!Time limit:1.00 s Memory limit:512 MBA permutation of integers1,2,…,n is calledbeautifulif there are no adjacent elements whose difference is1.Givenn, construct a beautiful permutation if such a permuta...原创 2021-10-27 15:06:27 · 337 阅读 · 0 评论 -
Increasing Array
今天大早上的起来写博客是为什么呢没错!今天是1024,祝各位神犇1024快乐!今天讲的还是CSES的题目(因为题目简单)进入正题 上题目!Time limit:1.00 s Memory limit:512 MBYou are given an array ofnintegers. You want to modify the array so that it is increasing, i.e., every element is at least as large as t...原创 2021-10-24 12:09:41 · 277 阅读 · 0 评论 -
Repetitions(修订版)
没错有细心的朋友们已经发现了(应该是抄代码发现不能过),本蒟蒻上次给出的代码是错误的,这篇博客做一下修正AC代码#include <bits/stdc++.h>//ÍòÄÜÍ· using namespace std;int sum = 1, ma = 1;//Êý×鶨ÒåµÄλÖÃûÓÐʲôҪÇ󣬰´¸öÈËϲºÃÀ´ int main(){ string s; cin >> s; for(int i = 1 ;i < s.siz原创 2021-10-22 11:15:15 · 136 阅读 · 0 评论 -
Repetitions
今天运气不错,cses网站进得去,那今天就讲一讲cses的题目吧(第四堂体育课求雨失败 我来电脑老师这逃课了 傻逼的体育老师想累死我们)先上题目!time limit:1.00 s Memory limit:512 MBYou are given a DNA sequence: a string consisting of characters A, C, G, and T. Your task is to find the longest repetition in the seque..原创 2021-10-15 11:21:05 · 595 阅读 · 0 评论 -
Missing Number
今天依旧是cses的题目(今天绝对没有水博客,因为这篇是昨天写的)上题!Time limit:1.00 s Memory limit:512 MBYou are given all numbers between1,2,…,n1,2,…,nexcept one. Your task is to find the missing number.InputThe first input line contains an integernn.The second line conta...原创 2021-09-30 06:00:00 · 297 阅读 · 0 评论 -
Weird Algorithm
今天给大家讲一道cses上的题目,现做现发(今天没有水博客)话不多说,上题目!Time limit:1.00 s Memory limit:512 MBConsider an algorithm that takes as input a positive integernn. Ifnnis even, the algorithm divides it by two, and ifnnis odd, the algorithm multiplies it by three a...原创 2021-09-29 16:18:34 · 252 阅读 · 1 评论