修改了数据库表名之后,更新数据库时跳错:
django.db.utils.NotSupportedError: Renaming the japi_api_info table while in a transaction is not supported on SQLite < 3.26 because it would break referential integrity. Try adding atomic F…
K
K Co-prime Permutation
题意:给定n和k,让你构造n的排列,满足gcd(pi, i)1的个数为k。
思路:因为x和x-1互质,1和任何数互质,任何数和它本身不互质
当k为奇数时,p11,后面k-1个数…