版本比较
题解 P2229 【[HNOI2002]沙漠寻宝】
正文
增加 1 行删除 1 行
99 行未改动10010110210310410410510610710814 行未改动99 行未改动 ios_base::sync_with_stdio(false); stack <int> S; string x,y; int n=0; do{ ++n,N[n].l=n+1,N[n].t=0; cin>>x; if(x=="start") S.push(n); else if(x=="start") S.push(n); else if(x=="loop" ) cin>>N[n].S,N[n].f=1,S.push(n); else if(x=="continue") N[n].t=-1 ,N[n].f=2,N[n].w=S.top(); else if(x=="break" ) N[n].t=-INF,N[n].f=2,N[n].w=S.top(); else if(x=="write" ) cin>>N[n].S,N[n].f=3;14 行未改动