12 2022 档案

摘要:题目 求 f(a,b,c,n)=i=0nai+bc 题解 当 acbc 时, $\begin{aligned} \sum\limits_{i=0}^n\lfloor\frac{ai+b}c\rf 阅读全文
posted @ 2022-12-31 17:44 灰鲭鲨 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Problem StatementWe have a grid with H rows and W columns. Each square is painted either white or black. For each integer pair (i,j) such that 阅读全文
posted @ 2022-12-23 20:53 灰鲭鲨 阅读(34) 评论(0) 推荐(0) 编辑
摘要:Problem StatementWe have a rooted tree with N vertices numbered 1,2,,N. The tree is rooted at Vertex 1, and the parent of Vertex i2 阅读全文
posted @ 2022-12-23 20:46 灰鲭鲨 阅读(33) 评论(0) 推荐(0) 编辑
摘要:Problem StatementIn a string fair, they determine the beauty of a non-empty string S consisting of lowercase English letters. The beauty of string $ 阅读全文
posted @ 2022-12-23 20:14 灰鲭鲨 阅读(26) 评论(0) 推荐(0) 编辑
摘要:Problem StatementYou are given an integer sequence A=(A1,,AN) of length N. Find the number, modulo 998244353, of permutations $P = (P 阅读全文
posted @ 2022-12-23 17:05 灰鲭鲨 阅读(30) 评论(0) 推荐(0) 编辑
摘要:Problem StatementYou are given a tree with N vertices. The vertices are numbered 1,,N, and the i-th (1iN1) edge connects 阅读全文
posted @ 2022-12-23 16:52 灰鲭鲨 阅读(23) 评论(0) 推荐(0) 编辑
摘要:题目描述 The position of the leftmost maximum on the segment [l;r] of array x=[x1,x2,,xn] is the smallest integer i such that $ 阅读全文
posted @ 2022-12-22 20:11 灰鲭鲨 阅读(22) 评论(0) 推荐(0) 编辑
摘要:题目描述 You are given three integers a , b , and d . Your task is to find any integer x which satisfies all of the following conditions, 阅读全文
posted @ 2022-12-22 18:08 灰鲭鲨 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Problem StatementA teacher has a hidden permutation P=(P1,P2,,PN) of (1,2,,N). You are going to determine it. To do this, you prepa 阅读全文
posted @ 2022-12-22 16:02 灰鲭鲨 阅读(31) 评论(0) 推荐(0) 编辑
摘要:Problem StatementTakahashi is trying to catch many Snuke. There are some pits in a two-dimensional coordinate plane, connected to Snuke's nest. Now, $ 阅读全文
posted @ 2022-12-21 21:32 灰鲭鲨 阅读(20) 评论(0) 推荐(0) 编辑
摘要:Problem StatementYou are given integers R, G, B, and K. How many strings S consisting of R, G, and B satisfy all of the conditions below? Fi 阅读全文
posted @ 2022-12-21 21:20 灰鲭鲨 阅读(41) 评论(0) 推荐(0) 编辑
摘要:Ehab's REAL Number Theory Problem 题目描述 You are given an array a of length n that has a special condition: every element in this array has at m 阅读全文
posted @ 2022-12-21 19:16 灰鲭鲨 阅读(18) 评论(0) 推荐(0) 编辑
摘要:# [NOIP2022] 建造军营 ## 题目描述 A 国与 B 国正在激烈交战中,A 国打算在自己的国土上建造一些军营。 A 国的国土由 n 座城市组成,m 条双向道路连接这些城市,使得**任意两座城市均可通过道路直接或间接到达**。A 国打算选择一座或多座城市(**至少一座**),并在这 阅读全文
posted @ 2022-12-19 14:48 灰鲭鲨 阅读(557) 评论(0) 推荐(0) 编辑
摘要:The game is played by Alice and Bob. Initially, there are n stones. The players alternate turns, making a move described below, with Alice going fir 阅读全文
posted @ 2022-12-17 08:28 灰鲭鲨 阅读(51) 评论(0) 推荐(0) 编辑
摘要:Problem StatementConstruct a set S of integers satisfying all of the conditions below. It can be proved that at least one such set S exists under 阅读全文
posted @ 2022-12-17 08:27 灰鲭鲨 阅读(26) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-14 22:37 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-14 21:22 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-14 18:46 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
摘要:div class="part"> Problem StatementYou are given a sequence of non-negative integers A=(a1,,aN). Let us perform the following operation on $ 阅读全文
posted @ 2022-12-12 18:32 灰鲭鲨 阅读(81) 评论(0) 推荐(0) 编辑
摘要:Problem StatementYou are given positive integers N and M. Find the number, modulo M, of simple connected undirected graphs with N vertices num 阅读全文
posted @ 2022-12-12 17:20 灰鲭鲨 阅读(56) 评论(0) 推荐(0) 编辑
摘要:Problem StatementThere are N towns numbered 1,,N and M roads numbered 1,,M. Road i connects towns Ai and Bi. When you use 阅读全文
posted @ 2022-12-05 11:44 灰鲭鲨 阅读(34) 评论(0) 推荐(0) 编辑
摘要:Problem Statement A hexagonal cell is represented as (i,j) with two integers i and j. Cell (i,j) is adjacent to the following six cells: $(i-1 阅读全文
posted @ 2022-12-05 10:53 灰鲭鲨 阅读(60) 评论(1) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-02 21:21 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-02 21:06 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-02 20:53 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-02 18:29 灰鲭鲨 阅读(0) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示