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 |
#include<iostream>#include<iostream> using namespace std; int main() { int T,i,h,t; cin>>T; for(i=0;i<T;i++) { scanf("%d:%d",&h,&t); if(t!=0) cout<<0<<endl; else if(h<13) cout<<h+12<<endl; else cout<<h-12<<endl; } return 0; } www.haokan5.com 一起看电影 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator