首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
100735D
】的更多相关文章
CodeForcesGym 100735D Triangle Formation
Triangle Formation Time Limit: Unknown ms Memory Limit: 65536KB This problem will be judged on CodeForcesGym. Original ID: 100735D64-bit integer IO format: %I64d Java class name: (Any) You are given N wooden sticks. Your task is to determine h…
100735D
排序+搜索 为什么这是对的呢?其实我不是很清楚 大概是这个样子的:我们希望构成三角形的三个数尽可能集中,因此在搜索中贪心地选取从最小依次往上,选取三条边,但是总感觉有反例,先挖个坑... #include<iostream> #include<algorithm> #include<Cstdio> using namespace std; int n,ans; ],a[],used[]; inline bool cp(int x,int y) { return x<…