[
Home
|
Training
|
Problems
|
Contests
|
C Language
]
[
Login
|
Register
]
New post
Show post
Search forum
Read post
Re:求助这段哪儿有问题吗,实在是找不到问题了
[
Topic
] 2013-03-05 21:11:33
MyCodeStyle
后面的代码没贴好,标准的输入输出应该是这样的。
#include<stdio.h>
int main()
{
long p,q,r;
while(scanf("%ld %ld",&p,&q)!=EOF)
{
if(q>r) r=q-p;
else r=p-q;
printf("%ld",r);
}
return 0;
}
Reply
Title
Message
(64K)
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.6ms with 2 query(s).