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 |
……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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator