摘要:
E.Sum of All Substrings 原题链接 Problem Statement You are given a string \(S\) of length \(N\) consisting of digits from 1 through 9. For each pair of in 阅读全文
摘要:
Codeforces Round 900 (Div. 3) DEF D. Reverse Madness? 原题链接 Problem Statement You are given a string \(s\) of length \(n\), containing lowercase Latin 阅读全文
摘要:
B. Fortune Telling Haha, try to solve this, SelectorUnlimited! — antontrygubO_o Your friends Alice and Bob practice fortune telling. Fortune telling i 阅读全文
摘要:
D.Avoid K Palindrome 原题链接 Problem Statement You are given a directed graph with \(N\) vertices and \(M\) edges. The \(j\)-th directed edge goes from v 阅读全文
摘要:
Time Limit: 2 sec / Memory Limit: 1024 MB Score : 450 points Problem Statement You are given an integer sequence \(A=(A_1,\ldots,A_N)\) of length \(N\ 阅读全文
摘要:
D.Avoid K Palindrome 原题链接 Problem Statement You are given a string \(S\) of length \(N\) consisting of characters A, B, and ?. You are also given a po 阅读全文
摘要:
C.You Soared Afar With Grace 原题链接 Problem Statement 给你一个长度为 n 的排列组合 a 和 b 。您最多可以执行下面的操作 n 次: 选择两个索引 i 和 j ( 1≤i,j≤n , i≠j ),将 ai 与 aj 交换,将 bi 与 bj 交换。 阅读全文