题目链接:点击打开链接http://codeforces.com/contest/7/problem/CC. LineA line on the plane is described by an equation Ax + By + C = 0. You are to find any point on this line, whose co
原创 2022-08-12 09:14:19
30阅读
C. Line 题目连接: http://www.codeforces.com/contest/7/problem/C Description A line on the plane is described by an equation Ax + By + C = 0. You are to fi
qt
原创 2021-07-16 11:55:15
223阅读
题目链接:codeforces 17C题目大意:解Ax+By+C =exgcd ( LL a , LL b
Problem - C - Codeforces C. Ticks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Casimi ...
转载 2021-10-03 23:20:00
197阅读
2评论
// Problem: C. Football// Contest: Codeforces - RCC 2014 Warmup (Div. 2)// URL: https://codeforces.com/problemset/probl
原创 2022-08-16 14:47:28
81阅读
// Problem: C. Labs// Contest: Codeforces - Codeforces Round #593 (Div. 2)// URL: https://codeforces.com/problemset/pr
原创 2022-08-16 14:49:10
81阅读
// Problem: C. Hills// Contest: Codeforces - Codeforces Round #500 (Div. 1) [based on EJOI]// URL: ht
原创 2022-08-16 14:53:42
85阅读
// Problem: C. Palindromifier// Contest: Codeforces - Codeforces Round #676 (Div. 2
原创 2022-08-16 14:55:00
41阅读
题目大意给出n个矿工的位置(0,y)和金矿的位置(x,0),求出每个矿工和一个金矿连线的最小总和思路最小值的情况应该是n条连线无交点;下面通过反证法证明:假设存在两条连线相交,交点为0根据三角形边长的特点:c < a + b则有|AO|+|DO|>|AD|,|CO|+|BO|>|BC|,即:|AD|+|BC|<|AO|+|DO|+|CO|+|BO|=|AB|+|CD|。所以
转载 2021-03-11 09:56:29
146阅读
2评论
C. Robot Time Limit: 3000ms Case Time Limit: 3000ms Memory Limit: 262144KB 64-bit interma
转载 2016-02-01 10:46:00
36阅读
2评论
C. Phoenix and Distribution题目传送门算法:贪心题意:将长度为nnn的字符串strstrstr分成kkk个子序列(每个字母只使用一次),将字典序最大的子序列最小化。思路:显然可以对字符串进行排序后再分配,根据贪心思想,每个子序列si(i∈[1,k])s_i(i\in [1,k])si​(i∈[1,k])尽可能占用少的字典序小的字母。于是有 :pos1:if(s...
原创 2022-01-22 14:49:36
44阅读
// Problem: C. Ilya and Matrix// Contest: Codeforces - Codeforces Round #186 (Div. 2)// URL: https://codeforces.com/proble
原创 2022-08-16 14:37:57
23阅读
#include<vector> using namespace std; const int N = 2e5 + 10; typedef long long ll; ll x, k; bool check (ll tar) { ll sum = (1 + m
原创 2022-08-16 14:42:00
52阅读
// Problem: C. Guess the Array// Contest: Codeforces - Technocup 2017 - Elimination Round 1 (Unofficially
原创 2022-08-16 14:42:46
38阅读
// Problem: C. Tea Party// Contest: Codeforces - Educational Codeforces Round 21// URL: https://codeforces.com/problemset/
原创 2022-08-16 14:44:05
32阅读
// Problem: A. Di-visible Confusion// Contest: Codeforces - Codeforces Round #
原创 2022-08-16 14:50:22
133阅读
// Problem: C. Rotation Matching// Contest: Codeforces - Codeforces Round #648 (Div. 2)// URL: https://
原创 2022-08-16 14:52:02
77阅读
// Problem: C. Element Extermination// Contest: Codeforces - Codeforces Global Round 9// URL: https
原创 2022-08-16 14:52:17
17阅读
// Problem: C. Element Extermination// Contest: Codeforces - Codeforces
原创 2022-08-16 14:54:04
30阅读
https://codeforces.com/contest/1625/problem/C#include<iostream>#include<algo
原创 2022-08-16 14:56:43
60阅读
  • 1
  • 2
  • 3
  • 4
  • 5