摘要:
const int sz=26; struct mat{ ll m[sz+2][sz+2]; mat(){ memset(m,0,sizeof m); rep(i,1,sz)m[i][i]=1; } mat friend operator*(const mat&a,const mat&b){ mat 阅读全文
posted @ 2025-08-16 19:40
Marinaco
阅读(4)
评论(0)
推荐(0)
摘要:
需设置初始温度T0,终止温度T1,降温系数delta 以P的概率接受新答案 #define delta 0.995 int ans=0; int cal(){...} void sa(){ int bt=3000,et=1e-15; while(bt>et){ ... int res=cal(); 阅读全文
posted @ 2025-08-16 17:46
Marinaco
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号