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

……

Posted by speedcell4 at 2012-11-25 01:04:25 on Problem 3751 and last updated at 2012-11-25 01:04:38
In Reply To:新手用C写的。。出来秀一下。。 Posted by:thorn at 2011-11-16 16:15:05
scanf("%d/%d/%d-%d:%d:%d",&year,&month,&date,&hour,&minute,&second);
printf("%02d/%02d/%04d-%02d:%02d:%02d%s\n",month,date,year,(hour%12)?(hour%12):12,minute,second,(hour>=12)?"pm":"am");

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