[随机算法]爬山算法和模拟退火
洛谷 – P3878 – [TJOI2010]分金币
https://www.luogu.org/problem/P3878
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n, a[55];
vector<int> ansa, ansb;
ll suma, sumb, ans = 0x3f3f3f3f3f3f3f3f;
void init()
{
suma = sumb = 0;
原创
2020-11-04 21:47:18 ·
240 阅读 ·
0 评论