ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1320
. Graph Decomposition
Show all messages
Hide all messages
how to input data in c / c ++?
lian lian
26 Dec 2008 07:19
Re: how to input data in c / c ++?
Fyodor Menshikov
26 Dec 2008 12:59
http://www.cppreference.com/wiki/c/io/scanf
The return value of scanf() is the number of variables that were successfully assigned values, or EOF if there is an error
Re: how to input data in c / c ++?
Nguyễn Cảnh Toàn
4 Jan 2009 08:23
void Readinp()
{
int x,y;
memset(a,0,sizeof(a));
memset(b,0,sizeof(b));
while (cin >> x >>y)
{
a[x][y]=1; a[y][x]=1;
b[x]++; b[y]++;
n=max(n,max(x,y));
}
}
© 2000–2024
Timus Online Judge Team
. All rights reserved.