There are nn students standing in a circle in some order. The index of the ii-th student is pipi. It is guaranteed that all indices of students are di ...
分类:
其他好文 时间:
2019-08-27 01:18:23
阅读次数:
104
"codeforces" 很有意思的题。 考虑dp,设$f_i$表示$i$这棵字树的答案。 显然有$f_i=deg_x!\prod_{j\in son[i]}f_j$ 由于根节点是钦定的,所以答案还要乘上一个$n$ 代码: c++ include include include include us ...
分类:
其他好文 时间:
2019-08-24 15:07:36
阅读次数:
64
A - Circle of Students 题意:判断是否是1,2,3...n的排列或者n,n-1...2,1的排列 思路1:分类讨论,如果是递增的,ai-i的值固定,如果递减,ai+i的值固定 #include<bits/stdc++.h> #define rep(i,a,b) for(int ...
分类:
其他好文 时间:
2019-08-15 01:08:27
阅读次数:
123
比赛链接 :https://codeforc.es/contest/1203/ A. Circle of Students 题意 :$T$组询问,每组询问给出$n$个数字,问这$n$个数字能否围成圆环。(围成圆环指,从某一位开始顺时针或逆时针遍历,数组为$1, 2, 3, ..., n$) 分析 : ...
分类:
其他好文 时间:
2019-08-14 17:00:16
阅读次数:
68
效果图: 代码: 问题:// icon: "pin", // 这个字段控制形状 类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none满足不了我们的时候,就可以自定义图片 ...
分类:
其他好文 时间:
2019-08-09 17:18:13
阅读次数:
1259
1、效果 代码参考B站视频:https://www.bilibili.com/video/av36584062 功能:点击左边,会发出信号,右边会有个颜色动画,然后计数+1 2、分析: 一共有两个对象,他们很多属性都差不多,如可变颜色、原型、可变text..所以可以声明一个Circle对象,然后Se ...
分类:
其他好文 时间:
2019-08-03 18:52:55
阅读次数:
138
J - Sincerely Gym - 101350J Physics cat likes to draw shapes and figure out their area. He starts by drawing a circle. Then inside the circle, he draw ...
分类:
其他好文 时间:
2019-08-02 20:18:27
阅读次数:
114
为实现小程序的地图可视化做准备 coding:utf 8 import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Circle import matplotlib as mt / 生成一个指定 ...
分类:
其他好文 时间:
2019-07-29 21:37:08
阅读次数:
132