摘要:
E.Random Swaps of Balls 问题陈述 有 \(N - 1\) 个白球和一个黑球。这些 \(N\) 球排列成一排,黑球最初位于最左边的位置。 高桥正好要进行下面的操作 \(K\) 次。 在 \(1\) 和 \(N\) 之间均匀随机地选择一个整数,包括两次。假设 \(a\) 和 \( 阅读全文
posted @ 2025-05-17 12:02
usedchang
阅读(13)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2025-05-17 09:09
usedchang
阅读(8)
评论(0)
推荐(0)