2018 “百度之星”程序设计大赛 - 初赛(A)(-4)
1. 度度熊拼三角
分析: 看最紧临的并且尽可能长的3根木棒是否构成三角形
#include <iostream>
#include <algorithm>
using namespace std;
const int N = 1005;
bool cmp(const int& a, const int& b) {
return a >...
原创
2018-08-11 22:59:04 ·
511 阅读 ·
0 评论