摘要: 错误: django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environ 阅读全文
posted @ 2020-09-22 20:21 反射狐 阅读(2895) 评论(0) 推荐(0)
摘要: 题目:https://vjudge.net/problem/UVA-11624/origin 我最先想的是先bfs火焰蔓延,用一个三维数组记录不同步数下的火焰情况。(第一位是步数,第二维第三维是坐标)然后再bfsJoe的走路情况。但是在bfs火焰蔓延的地方有些麻烦。 百度了一下有两种想法: 第一种: 阅读全文
posted @ 2020-09-15 13:53 反射狐 阅读(138) 评论(0) 推荐(0)
摘要: The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room 阅读全文
posted @ 2020-09-15 10:03 反射狐 阅读(113) 评论(0) 推荐(0)
摘要: 定义:正整数n, 1到n-1中与n互质的数的个数为x, 欧拉函数值phi[n]=x。 通式:phi[n]=n(1-1/p1)(1-1/p2)(1-1/p3)(1-1/p4)…(1-1/pn)[pi为小于等于n的质因数] 如果n为质数,phi[n]=n-1。(因为对于质数n,它的因子只有1和它本身,1 阅读全文
posted @ 2020-08-18 13:11 反射狐 阅读(238) 评论(0) 推荐(0)
摘要: 原题:https://www.luogu.com.cn/problem/P1249 参考题解:https://www.luogu.com.cn/problemnew/solution/P1249 题目描述 一个正整数一般可以分为几个互不相同的自然数的和,如 3=1+23=1+2,4=1+34=1+3 阅读全文
posted @ 2020-04-16 13:50 反射狐 阅读(704) 评论(0) 推荐(0)