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

Re:我是这么处理那个恶心的输入的……

Posted by roy_alice at 2012-11-29 14:54:35 on Problem 1470
In Reply To:Re:我是这么处理那个恶心的输入的…… Posted by:roy_alice at 2012-11-29 14:52:56
我是这么写的
scanf("%d",&m);
char ch;
int i=0;
while(i<m)
{
   ch=getchar();
   if(ch!='(') continue;
   scanf("%d%d",&x,&y);
   ask[x].push_back(y);
   ask[y].push_back(x);
   i++;
}

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