제출 #3151

#제출 시각아이디문제언어결과실행 시간메모리
3151chan492811지능형 기차 2 (KOI11_train2)C++98
16 / 16
0 ms1672 KiB
#include <cstdio>
#include <iostream>

using namespace std;

int q,w,a,m;
int main()
{
	int i;
	m=-9;
	for(i=1;i<=10;i++)
	{
	    scanf("%d %d",&q,&w);
	    a=a-q+w;
	    m=max(m,a);
	}
	printf("%d",m);
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...