07 2021 档案
摘要:难度 1300 题目 Codeforces: B. T-primes time limit per test 2 seconds memory limit per test 256 megabytes We know that prime numbers are positive integers
阅读全文
摘要:难度 1500 题目 Codeforces: B. Kefa and Company time limit per test 2 seconds memory limit per test 256 megabytes Kefa wants to celebrate his first big sal
阅读全文
摘要:难度 1500 题目 Codeforces: C. Kefa and Park time limit per test 2 seconds memory limit per test 256 megabytes Kefa decided to celebrate his first big sala
阅读全文
摘要:难度 困难 题目 Leetcode: 773. Sliding Puzzle On an 2 x 3 board, there are five tiles labeled from 1 to 5, and an empty square represented by 0. A move consi
阅读全文
摘要:难度 1500 题目 Codeforces: A. Two Substrings time limit per test 2 seconds memory limit per test 256 megabytes You are given string s. Your task is to det
阅读全文
摘要:难度 1500 题目 Codeforces: C. Divisibility by Eight time limit per test 2 seconds memory limit per test 256 megabytes You are given a non-negative integer
阅读全文
摘要:难度 1700 题目 Codeforces: C. Number of Ways time limit per test 2 seconds memory limit per test 256 megabytes You've got array a[1], a[2], ..., a[n], con
阅读全文
摘要:难度 中等 题目 Leetcode: 752.Open the Lock You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6
阅读全文
摘要:难度 1700 题目 CodeForces: D. Flowers time limit per test 1.5 seconds memory limit per test 256 megabytes We saw the little game Marmot made for Mole's lu
阅读全文
摘要:难度 1300 题目 CodeForces: C. Registration system time limit per test 5 seconds memory limit per test 64 megabytes A new e-mail service "Berlandesk" is go
阅读全文
摘要:难度 中等 题目 Leetcode: 1838. Frequency of the Most Frequent Element The frequency of an element is the number of times it occurs in an array. You are give
阅读全文
摘要:难度 中等 题目 Leetcode: 面试题 10.02. Group Anagrams LCCI Write a method to sort an array of strings so that all the anagrams are in the same group. Example I
阅读全文
摘要:难度 1500 题目 CodeForces: Boredom time limit per test 1 second memory limit per test 256 megabytes Alex doesn't like boredom. That's why whenever he gets
阅读全文
摘要:难度 简单 题目 Leetcode: 剑指Offer 53 - Ⅰ. 在排序数组中查找数字 统计一个数字在排序数组中出现的次数。 0 <= array.length() <= 50000 题目解析: 懒得解析了,直接map记录,直接输出 以下为参考代码 class Solution { public
阅读全文
摘要:难度 中等 题目 Leetcode: 1846.Maximum Element After Decreasing and Rearranging You are given an array of positive integers arr. Perform some operations (pos
阅读全文
摘要:难度 1300 题目 CodeForces: IQ test time limit per test 2 seconds memory limit per test 256 megabytes Bob is preparing to pass IQ test. The most frequent t
阅读全文
摘要:难度 1200 题目 CodeForces: Vanya and Lanterns time limit per test 1 second memory limit per test 256 megabytes Vanya walks late at night along a straight
阅读全文
浙公网安备 33010602011771号