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 dreamfox at 2009-07-04 20:23:46 on Problem 2247
		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:
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