2022年12月6日

Codeforces 2 A. Winner

摘要: 题意: 最终获得分数最大的情况下,求最先达到最大分数的人。 C#10 .net6代码 int n = int.Parse(Console.ReadLine()!); Dictionary<string, int> dict = new(); List<Tuple<string, int>> list 阅读全文

posted @ 2022-12-06 16:15 luobo67 阅读(13) 评论(0) 推荐(0)

Codeforces 1 C. Ancient Berland Circus

摘要: 题意: 二维平面中,给定三个点,这三个点是正多边形的三个顶点,求正多边形最小的面积。 思路: 两对点分别求中垂线,相交点是多边形外接圆的圆心,圆心有了半径和角度也就有了,之后求一下gcd,再算一下多边形面积。 C# 10 .net6 代码 List<double> a = new(); List<d 阅读全文

posted @ 2022-12-06 15:55 luobo67 阅读(26) 评论(0) 推荐(0)

导航