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 |
把题意理解错了..我还以为只要移动到不是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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator