C++题解
文章平均质量分 82
翎泠风
这个作者很懒,什么都没留下…
展开
-
牛客2021年多校训练营<2>
呼呼原创 2021-07-22 15:59:25 · 182 阅读 · 0 评论 -
牛客2021年多校训练营<1>
牛客2021年多校训练营<1>Alice and Bob输入描述:输出描述:Ball Dropping输入描述:输出描述:Determine the Photo Position输入描述:输出描述:Alice and Bob时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述Alice and Bob like playing games. There are two piles of原创 2021-07-21 21:17:32 · 245 阅读 · 0 评论 -
B2. Palindrome Game (hard version)
B2. Palindrome Game (hard version)time limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputThe only difference between the easy and hard versions is that the given string s in the easy version is initial原创 2021-05-21 20:59:12 · 269 阅读 · 0 评论 -
B1. Palindrome Game (easy version)
B1. Palindrome Game (easy version)time limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputThe only difference between the easy and hard versions is that the given string s in the easy version is initial原创 2021-05-21 19:46:59 · 388 阅读 · 0 评论 -
A. And Then There Were K
A. And Then There Were Ktime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputGiven an integer n, find the maximum value of integer k such that the following condition holds: n & (n−1) &am原创 2021-05-21 19:36:19 · 309 阅读 · 0 评论 -
B. Partial Replacement
B. Partial Replacementtime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputYou are given a number k and a string s of length n, consisting of the characters ‘.’ and ‘’. You want to replace some of t原创 2021-05-21 19:26:44 · 165 阅读 · 0 评论 -
A. K-divisible Sum
A. K-divisible Sumtime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputYou are given two integers n and k.You should create an array of n positive integers a1,a2,…,an such that the sum (a1+a2+⋯+an)原创 2021-05-15 13:12:41 · 160 阅读 · 0 评论 -
B. Inflation
B. InflationB. Inflationtime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputYou have a statistic of price changes for one product represented as an array of n positive integers p0,p1,…,pn−1, where原创 2021-05-15 12:54:47 · 182 阅读 · 0 评论 -
B. Beautiful Numbers
B. Beautiful NumbersB. Beautiful Numberstime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputYou are given a permutation p=[p1,p2,…,pn] of integers from 1 to n. Let’s call the number m (1≤m≤n) beaut原创 2021-05-15 08:37:12 · 106 阅读 · 0 评论 -
D. Corrupted Array
D. Corrupted ArrayD. Corrupted Arraytime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputYou are given a number n and an array b1,b2,…,bn+2, obtained according to the following algorithm:some arra原创 2021-05-14 17:35:16 · 226 阅读 · 0 评论