![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
--------思维--------
title
Sand_IN_MysterieS
这个作者很懒,什么都没留下…
展开
-
【无标题】
数论+思维The 2021 CCPC Weihai OnsiteJ. Circular Billiard Tablehttps://codeforc.es/gym/103428/problem/J引用结论:已知a,bmin xs.t. ax = byy属于任意实数那么 x = b / gcd(a,b)可以画圈感性理解这个东西,不必取用exgcd去解(不用exgcd去debug)#include<bits/stdc++.h>//#include<gl/glut.h&原创 2021-11-24 15:29:45 · 316 阅读 · 0 评论 -
思维+手速
思维A. Goodbye, Ziyin!https://codeforc.es/gym/103428/problem/A题目给出的是一个树,但是如果不是二叉树就寄,特判就好手慢无#include<bits/stdc++.h>//#include<gl/glut.h>//#include<ctime>#define ll long long#define mes(a,b) memset(a,b,sizeof(a))#define ctn continue原创 2021-11-24 13:13:07 · 713 阅读 · 0 评论