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 39D. Cubical Planet You can find anything whatsoever in our Galaxy! A cubical planet goes round an icosahedral star. Let us introduce a system of axes so that the edges of the cubical planet are parallel to the coordinat 2022-11-15 Codeforces > 800 #思维
实验室第二次讲课 实验室第二次讲课#47. 时间转换说明给定一个以秒为单位的时间t,要求用的格式来表示这个时间。<H>表示时间,<M>表示分钟,而表示秒,它们都是整数且没有前导的“0”。例如,若t=0,则应输出是“”;若t=3661,则输出“”。 输入格式输入只有一行,是一个整数t(0<=t<=86399)。 输出格式输出只有一行,是以“” 2022-11-10 实验室讲课 #入门 #实验室讲课
Codeforces 1744A. Number Replacement A. Number Replacementtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn integer array a1,a2,…,an is being transformed into an array of lowercase E 2022-10-10
Codeforces 1750B. Maximum Substring B. Maximum Substring A binary string is a string consisting only of the characters 0 and 1. You are given a binary string s. For some non-empty substring† t of string s containing x characters 0 and y 2021-11-10