| ||||||||||
| 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 | |||||||||
Re:我是这么处理那个恶心的输入的……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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator