2021CCPC网络赛题解(1001/1009/1007/1002/1006/1012/1011/1008)
1001.CutTheWire(模拟)1001.CutTheWire由题意:1.当x为偶数时,与x/2进行连边2.当x为奇数时,与3*x+1连边现在我们需要计算有多少条边(a,b),an模拟即可#include#definelllonglongusingnamespacestd;intmain(){//freopen("2.in","r",stdin);intt;cin>>t;while(t--)