版本比较
10.4 模拟赛
正文
增加 2 行删除 2 行
64 行未改动6566676869697071727396 行未改动170171172173174174175176177178178 行未改动全部展开64 行未改动 if(u==n){cout<<s<<" ";return;} for(int i=head[u];i;i=e[i].nxt) { int v=e[i].v;string w=e[i].w;
if(vis[v])continue; if(f[v]=="-"||cmp(s+w,f[v]))q.push((data){v,f[v]=s+w}); } }96 行未改动 i++; } if(x!=1)res-=res/x; return res;} }ll solve(ll x,ll tim){ if(tim<=0)return x; while(tim--&&x!=1)x=getphi(x);178 行未改动全部展开