摘要: Problem Statement Given is a positive integer N. Consider a sequence of integers A=(A1,…,AK) that satisfies the conditions below: ∑Ki=1Ai=N; each Ai i 阅读全文
posted @ 2021-08-12 23:41 Z-Y-Y-S 阅读(79) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given is a sequence pp of length N+MN+M, which is a permutation of (1,2…,N+M)(1,2…,N+M). The ii-th term of pp is pipi. You can do th 阅读全文
posted @ 2021-08-12 23:27 Z-Y-Y-S 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given is a grid with H rows and W columns. Let (i,j)denote the square at the i-th row from the top and j-th column from the left. In 阅读全文
posted @ 2021-08-12 23:13 Z-Y-Y-S 阅读(66) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Takahashi has many balls, on which nothing is written, and one bag. Initially, the bag is empty. Takahashi will do Q operations, eac 阅读全文
posted @ 2021-08-12 22:47 Z-Y-Y-S 阅读(44) 评论(0) 推荐(0) 编辑
摘要: Problem Statement The Republic of AtCoder has N cities, called City 1, City 2, ……, City N. Initially, there was a bidirectional road between every pai 阅读全文
posted @ 2021-08-12 22:36 Z-Y-Y-S 阅读(45) 评论(0) 推荐(0) 编辑
摘要: Problem Statement There are N cities numbered 1 through N, and MM buses that go between these cities. The i-th bus (1≤i≤M) departs from City Ai at tim 阅读全文
posted @ 2021-08-12 22:11 Z-Y-Y-S 阅读(40) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given is a prime number \(P\). How many pairs of integers $(x,y)$satisfy the following conditions? \(0≤x≤P−1\) \(0≤y≤P−1\) There exi 阅读全文
posted @ 2021-08-12 21:46 Z-Y-Y-S 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Problem Statement \(N\) people called Person \(1,2,…,N\) are standing in a circle. For each \(1≤i≤N−1\), Person \(i\)'s neighbor to the right is Perso 阅读全文
posted @ 2021-08-12 20:33 Z-Y-Y-S 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Problem Statement Given are positive integers \(N, K\), and a sequence of K integers \((A_1,A_2,…,A_K)\). Takahashi and Aoki will play a game with sto 阅读全文
posted @ 2021-08-12 17:10 Z-Y-Y-S 阅读(159) 评论(0) 推荐(0) 编辑