随笔分类 -  Codeforces

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要:C. Particles You have discovered n mysterious particles on a line with integer charges of c1,,cn. You have a device that allows you to perf 阅读全文
posted @ 2023-07-12 20:07 onlyblues 阅读(81) 评论(0) 推荐(0) 编辑
摘要:C. No Prime Differences You are given integers n and m. Fill an n by m grid with the integers 1 through nm, in such a way that for a 阅读全文
posted @ 2023-06-05 15:23 onlyblues 阅读(169) 评论(0) 推荐(0) 编辑
摘要:D. The BOSS Can Count Pairs You are given two arrays a and b, both of length n. Your task is to count the number of pairs of integers (i,j) su 阅读全文
posted @ 2023-06-01 12:20 onlyblues 阅读(123) 评论(0) 推荐(0) 编辑
摘要:B. Complete The Graph ZS the Coder has drawn an undirected graph of n vertices numbered from 0 to n1 and m edges between them. Each edge of 阅读全文
posted @ 2023-05-25 14:46 onlyblues 阅读(47) 评论(0) 推荐(0) 编辑
摘要:F. Ira and Flamenco Ira loves Spanish flamenco dance very much. She decided to start her own dance studio and found n students, ith of whom has le 阅读全文
posted @ 2023-05-22 09:07 onlyblues 阅读(112) 评论(0) 推荐(1) 编辑
摘要:G. Hits Different In a carnival game, there is a huge pyramid of cans with 2023 rows, numbered in a regular pattern as shown. If can 92 is hit in 阅读全文
posted @ 2023-05-08 14:48 onlyblues 阅读(86) 评论(0) 推荐(0) 编辑
摘要:D. Fish Graph You are given a simple undirected graph with n nodes and m edges. Note that the graph is not necessarily connected. The nodes are la 阅读全文
posted @ 2023-05-06 20:19 onlyblues 阅读(136) 评论(0) 推荐(0) 编辑
摘要:D. Running Miles There is a street with n sights, with sight number i being i miles from the beginning of the street. Sight number i has beaut 阅读全文
posted @ 2023-05-06 09:05 onlyblues 阅读(169) 评论(0) 推荐(1) 编辑
摘要:D. Unique Palindromes A palindrome is a string that reads the same backwards as forwards. For example, the string abcba is palindrome, while the strin 阅读全文
posted @ 2023-04-28 19:39 onlyblues 阅读(96) 评论(0) 推荐(2) 编辑
摘要:D. Super-Permutation A permutation is a sequence n integers, where each integer from 1 to n appears exactly once. For example, [1], $[3,5,2,1, 阅读全文
posted @ 2023-04-26 19:38 onlyblues 阅读(149) 评论(0) 推荐(1) 编辑
摘要:F. Gardening Friends Two friends, Alisa and Yuki, planted a tree with n vertices in their garden. A tree is an undirected graph without cycles, loop 阅读全文
posted @ 2023-04-26 16:45 onlyblues 阅读(216) 评论(0) 推荐(0) 编辑
摘要:G2. Magic Triples (Hard Version) This is the hard version of the problem. The only difference is that in this version, ai109. For a given seq 阅读全文
posted @ 2023-04-26 15:57 onlyblues 阅读(74) 评论(0) 推荐(0) 编辑
摘要:C. Place for a Selfie The universe is a coordinate plane. There are n space highways, each of which is a straight line y=kx passing through the or 阅读全文
posted @ 2023-04-04 10:14 onlyblues 阅读(114) 评论(0) 推荐(0) 编辑
摘要:D. A Wide, Wide Graph You are given a tree (a connected graph without cycles) with n vertices. Consider a fixed integer k. Then, the graph Gk i 阅读全文
posted @ 2023-04-04 09:38 onlyblues 阅读(101) 评论(0) 推荐(0) 编辑
摘要:C. Candy Store The store sells n types of candies with numbers from 1 to n. One candy of type i costs bi coins. In total, there are ai c 阅读全文
posted @ 2023-03-27 23:00 onlyblues 阅读(135) 评论(0) 推荐(0) 编辑
摘要:D. Binary String Sorting You are given a binary string s consisting of only characters 0 and/or 1. You can perform several operations on this string 阅读全文
posted @ 2023-03-24 10:08 onlyblues 阅读(179) 评论(0) 推荐(0) 编辑
摘要:C. Sequence Master For some positive integer m, YunQian considers an array q of 2m (possibly negative) integers good, if and only if for every p 阅读全文
posted @ 2023-03-19 18:01 onlyblues 阅读(210) 评论(0) 推荐(0) 编辑
摘要:E. Music Festival The boy Vitya loves to listen to music very much. He knows that n albums are due to be released this Friday, i-th of which conta 阅读全文
posted @ 2023-03-15 12:17 onlyblues 阅读(32) 评论(0) 推荐(0) 编辑
摘要:C. The Very Beautiful Blanket Kirill wants to weave the very beautiful blanket consisting of n×m of the same size square patches of some colo 阅读全文
posted @ 2023-03-15 09:18 onlyblues 阅读(116) 评论(0) 推荐(0) 编辑
摘要:C. Pull Your Luck While James is gone on business, Vesper takes her time and explores what the legendary Casino Royale has to offer to people who are 阅读全文
posted @ 2023-03-14 20:11 onlyblues 阅读(233) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
Web Analytics
点击右上角即可分享
微信分享提示