我是靠谱客的博主 忧伤犀牛,这篇文章主要介绍codeforces 116A - Tram,现在分享给大家,希望可以做个参考。

#include<stdio.h>
int main()
{
int a,b,i,max=0,n,x=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d%d",&a,&b);
x-=a;
x+=b;
if(x>max) max=x;
}
printf("%dn",max);
return 0;
}

 

转载于:https://www.cnblogs.com/piaomiao1314/archive/2013/05/23/codeforces-116A.html

最后

以上就是忧伤犀牛最近收集整理的关于codeforces 116A - Tram的全部内容,更多相关codeforces内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(129)

评论列表共有 0 条评论

立即
投稿
返回
顶部