跳到正文

个人记录

【LGJOI】命运歧途

WeLikeStudying约 1 分钟
原文
文章信息与版本

文章信息

发布
2021年9月7日
收录
2025年12月12日
更新
2026年11月11日
篇幅
约 1 分钟

版本

  1. v1当前
  • I shall be telling this with a sigh
  • Somewhere ages and ages hence.
  • Two roads diverged in a wood, and I ——
  • I took the one less traveled by,
  • And that has made all the difference.

题意

  • 题目 ID: 11867\text{ID: 11867}。
  • 对于 k∈[1,n]k\in[1,n],问有多少个 nn 阶排列满足相邻两项之差不为 kk,任意模数。

分析

  • 先讲模数为质数的做法,通过它理解模数为什么是质数。
原文