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

如果有学生没有课程的话,是不是输出NO?

Posted by zhaozhouyang at 2009-11-27 09:47:45 on Problem 1469
我建了个学生的数组vst,如果某个课程中有学生i,则vst[i] = 1;
输入完后,检查vst,如果有存在j,使vst[j] == 0,则输出NO,但是加了这个判断条件后就WA了,不加的话是正确的。
难道题目的意思不是说“每个学生都要能表现出一个不同的课程吗?",那意思就是至少要有一个可能啊?

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