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 songxin at 2007-05-25 15:25:30 on Problem 1182
In Reply To:我的食物链哪里有问题?高手GG帮帮忙看看 xx Posted by:herogxo at 2006-12-06 12:03:15
100 4
1 42 68
1 4 12
1 74 65
2 42 12

看这个测试数据,应该是没有假话,你的程序输出是1.
原因是两个号都是第一次出现时,你给他的赋值都是1,这表面看没错误,都第4句话就有问题了,你在想想吧,我也不知道怎么改.如果愿意交流的话,我的QQ240621516,注明讨论ACM

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