Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

#include<iostream>

Posted by 97xiao at 2009-10-29 01:16:46 on Problem 2840
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator