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