Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
史上最大杯具,打错数字造成WA -_-菜菜鸟: #include <iostream> using namespace std; int main() { int h,m,t,stk; char rest; cin>>t; while(t--) { cin>>h>>rest>>m; if(m) stk=0; else stk=h+12; cout<<(stk>24?(stk-24):stk)<<endl; } return 0; } //AC Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator