坐标轴上,有一个以 $(0,0)$ 为圆点,$d$ 为半径的圆。现在 Ashish 和 Utkarsh 玩游戏,Ashish 是先手。在 $(0,0)$ 处有一颗棋子,两人轮流将棋子向上或向右移动 $k$ 个单位,棋子不能移出圆,谁无法移动谁输。 ...
                            
                            
                                分类:
其他好文   时间:
2020-12-09 12:33:28   
                                阅读次数:
21
                             
                    
                        
                            
                            
                                
                    [2020.12.4周五] 圆上对称博弈 1451D - Circle Game 题解:注意到后手总可以使点走在(k,k)上,所以如果(k,k)是必胜态,则后手胜;否则先手总可以使(n*k+k,k)上,如果这是必胜态则先手赢 tag:对称博弈 #include<bits/stdc++.h> usin ...
                            
                            
                                分类:
其他好文   时间:
2020-12-09 12:15:50   
                                阅读次数:
5
                             
                    
                        
                            
                            
                                
                    abstract class Geometry{	public abstract double getArea();} class Pillar{	Geometry bottom;	double height;	Pillar(Geometry bottom,double height)	{ this ...
                            
                            
                                分类:
编程语言   时间:
2020-11-30 15:24:40   
                                阅读次数:
4
                             
                    
                        
                            
                            
                                
                    什么是方法的重写(override 或 overwrite)? 子类继承父类以后,可以对父类中同名同参数的方法,进行覆盖操作. 应用: 重写以后,当创建子类对象以后,通过子类对象调用子父类中的同名同参数的方法时,实际执行的是子类重写父类的方法。 举例: class Circle{ public do ...
                            
                            
                                分类:
其他好文   时间:
2020-11-27 11:05:51   
                                阅读次数:
4
                             
                    
                        
                            
                            
                                #1from turtle import* pensize(8) color("black") up() goto(50,0) down() circle(100) color("blue") up() goto(-170,0) down() circle(100) color("red") up( ...
                            
                            
                                分类:
其他好文   时间:
2020-11-26 14:11:54   
                                阅读次数:
5
                             
                    
                        
                            
                            
                                
                    二分搜索简介 在计算机科学中,二分搜索(binary search)也称折半搜索(half-interval search)、对数搜索(logarithmic search),是在有序数组中查找某一特定元素的搜索算法。 其基本思想是通过逐次比较数组特定范围的中间元素与目标元素的大小,每次缩小一半的搜 ...
                            
                            
                                分类:
其他好文   时间:
2020-11-12 13:35:55   
                                阅读次数:
9
                             
                    
                        
                            
                            
                                
                    package com.cn.demo; public class Circle {	private double radius;	public Circle() { }	public Circle(double r) { this.radius=r;	}	public double getArea ...
                            
                            
                                分类:
其他好文   时间:
2020-11-07 17:45:27   
                                阅读次数:
43
                             
                    
                        
                            
                            
                                width:200px; height:150px; background: radial-gradient(circle at bottom right, transparent 15px, aqua 0) bottom right, radial-gradient(circle at botto ...
                            
                            
                                分类:
其他好文   时间:
2020-10-19 23:08:52   
                                阅读次数:
39
                             
                    
                        
                            
                            
                                import turtle as t t.setup() t.pensize(5) for i in range(4): t.fd(150) t.right(90) t.circle(-150,45) t.right(90) t.fd(150) t.right(225) t.done() ...
                            
                            
                                分类:
其他好文   时间:
2020-10-19 23:05:13   
                                阅读次数:
56
                             
                    
                        
                            
                            
                                
                    ul.circle {list-style-type:circle;}//圆形列表项 ul.square {list-style-type:square;}//正方形列表项 ol.upper-roman {list-style-type:upper-roman;}//大写罗马数字 ol.lower- ...
                            
                            
                                分类:
Web程序   时间:
2020-10-16 11:02:43   
                                阅读次数:
34