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 |
Re:注意输出……In Reply To:注意输出…… Posted by:dreamfox at 2009-07-04 20:23:46 > if (n % 10==1&&n%100!=11) printf("The %dst humble number is %I64d.\n",n,a[n]); > else if (n % 10==2&&n%100!=12) printf("The %dnd humble number is %I64d.\n",n,a[n]); > else if (n % 10==3&&n%100!=13) printf("The %drd humble number is %I64d.\n",n,a[n]); > else printf("The %dth humble number is %I64d.\n",n,a[n]); > > 这个英文数字的书写格式……尾数是,11,12,13的也是th结尾 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator