版本比较
题解:P15521 [CCC 2016 J4] Arrival Time
正文
增加 4 行删除 4 行
5 行未改动6789101110111213141515161718195 行未改动252627282929303132338 行未改动5 行未改动```cpp#include <bits/stdc++.h>using namespace std;string s;int h,m,t=120; int main() { int h,m,t=120;int main() { cin>>s; h=(s[1]-'0')+10*(s[0]-'0'); m=(s[4]-'0')+10*(s[3]-'0'); int time=h*60+m; int time=h*60+m; while (t!=0) { if(time>=420&&time<600||time>=900&&time<1140){ time+=20; }else{5 行未改动 if(h>=24){ h%=24; } m=time%60;
if(h<10){ cout<<0<<h<<':'; if(m<10) cout<<0; cout<<m;8 行未改动