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

To WAers

Posted by Ruby931031 at 2012-04-02 12:04:03 on Problem 1189
1.使用64位整数 (我用的是unsigned long long),否则会溢出;
2.及时约分,否则数据会溢出;
3.这道题其实最简单的办法是模拟,还不容易出错……
贴两组数据:
#1)( 答案是710466673 / 4294967296 )
33 16
*
**
***
****
*****
******
*******
********
*********
**********
***********
**.**.**.***
******.******
*****.********
****.****.*****
******.*********
***.*.****.******
*****.*****.******
***.*****.***.*****
***********.********
*********.***********
**********************
********.**************
******.***.*************
*********.**.************
**********.***************
********.***************.**
***********************.****
***********************.*****
***************.**************
**************.****************
********************************
*********************************

#2)(答案是5723285335 / 34359738368)
35  16
*
**
***
****
*****
******
*******
********
*********
**.*******
***********
**.**.**.***
******.******
*****.********
****.****.*****
******.*********
***.*.****.******
*****.*****.******
***.*****.***.*****
***********.********
*********.***********
**********************
********.**************
******.***.*************
*********.**.************
**********.***************
********.***************.**
***********************.****
***********************.*****
***************.**************
**************.****************
*******..***********************
**********.***..*****************
*************.***..***************
***********************************

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