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 fourele at 2015-08-06 00:33:00 on Problem 1644
我还以为只要移动到不是0或L的格子上就要一直按指示移动下去呢,结果竟然只要动一次就行了!!!被这道水题坑了一天,贡献了若干TLE和WA..贴组数据积攒一下人品

Input:
5
50 40
L L L L L -1 2 -3 4 -5 0 0 0 0 0 -10 9 8 7 -6 0 0 L 0 0 2 3 -4 3 4 L L L -1 2 -3 4 -5 0 0 0 0 0 -10 1 0 L 0 0 -10
10 10
0 -1 3 0 3 -3 0 0 -7 1
20 40
0 -1 3 0 1 3 0 L -3 0 0 -7 L -2 1 5 3 -5 -3 0
5 5
2 0 -3 1 L
5 4
0 -1 -2 0 L

Output:
Bet against. 0.0553
Bet for. 0.6230
Bet for. 0.5600
Bet for. 0.8750
Bet against. 0.0000

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