版本比较
题解:P14505 [NCPC 2025] km/h
正文
增加 9 行删除 7 行
60 行未改动61626364656566676869707172737374757677767778798079808182838485868788899089919260 行未改动}
int main() { fastOI(); ll n,max=1,now_max=1; ll n,now_max=1,max=1; cin>>n; while (n--) { string value; cin>>value; if(value=="/"){ ll need=get(now_max); ll need=get(max); cout<<need<<'\n'; }else{ if(1LL*stoi(value)>=now_max){ now_max=stoi(value)*1LL; if(1LL*stoi(value)>=max){ max=stoi(value)*1LL; } max=stoi(value)*1LL; cout<<max<<'\n'; now_max=stoi(value)*1LL; cout<<now_max<<'\n'; } } return 0;}```
:::success[提交你就会发现]你AC了你Accepted了:::