From 6b548332bfc6469756526002971c422f43f86d0a Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Mon, 24 Jul 2023 13:11:33 +0300 Subject: Removed some empty *.cpp files and Solved some new problems --- codeforces/Tram/main | Bin 27800 -> 22664 bytes codeforces/Tram/main.cpp | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'codeforces/Tram') diff --git a/codeforces/Tram/main b/codeforces/Tram/main index 3c01372..efe2012 100755 Binary files a/codeforces/Tram/main and b/codeforces/Tram/main differ diff --git a/codeforces/Tram/main.cpp b/codeforces/Tram/main.cpp index ff917a6..9b967d3 100755 --- a/codeforces/Tram/main.cpp +++ b/codeforces/Tram/main.cpp @@ -1,4 +1,5 @@ -#include +#include +#include using namespace std; @@ -9,9 +10,9 @@ typedef vector vi; #define INF 1000000000 -int main () { - ios_base::sync_with_stdio(false); - cin.tie(NULL); +int main() { + ios_base::sync_with_stdio(false); + cin.tie(NULL); int mx = 0; int n; cin >> n; @@ -23,6 +24,6 @@ int main () { int x, y; cin >> x >> y; v[i + 1] = v[i] + (y - x); - } + } cout << *max_element(v.begin(), v.end()) << '\n'; } -- cgit v1.2.3