首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
2420专题
51Nod_2420 启蒙练习28-正数的和
51Nod_2420 启蒙练习28-正数的和 http://www.51nod.com/Challenge/Problem.html#!#problemId=2420 题目 先给定n,再给定n个整数,请计算出里面所有正数的和。 输入 第一行输入一个
阅读更多...
POJ 2420 A Star not a Tree? (费马点 爬山算法/模拟退火)
http://poj.org/problem?id=2420 题意:求离给定 n n n个点距离和最小的点(费马点)到这 n n n个点的距离和。 学习一下传说中的爬山算法和模拟退火算法。 //爬山算法#include <cstdio>#include <cstring>#include <algorithm>#include <iostream>#include <cmath>u
阅读更多...