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 3090101804 at 2013-04-18 23:41:20 on Problem 1396
注意这句话:
The horizontal line is always as long as necessary to reach the left and right end of both numbers (and operators) right below and above it.

分割线的长度问题花了我三个WA,注意分割线的长度只和与它上下相邻的那两个数的左端右端的位置有关(和再上面的以及再下面的就没关系了),比如:

101
 *1
---
101

   1
*101
----
   1
  0
 1
 ---
 101

  99
 *99
 ---
 891
891
----
9801

    算法上N^2的高精度乘法就能过了。另外,b只有一位数时,下面直接就是结果,不用把每位乘积都打印出来了。总结:这题很无聊,但确实考验人的仔细程度~

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