aboutsummaryrefslogtreecommitdiff
path: root/codeforces/Tram
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-07-24 13:11:33 +0300
committeromagdy7 <omar.professional8777@gmail.com>2023-07-24 13:11:33 +0300
commit6b548332bfc6469756526002971c422f43f86d0a (patch)
tree261fde23f07c3e20cea375030f0c52863b59228c /codeforces/Tram
parentcff8cae22ee9c25d193ff976143813f93e658e55 (diff)
downloadcompetitive-programming-6b548332bfc6469756526002971c422f43f86d0a.tar.xz
competitive-programming-6b548332bfc6469756526002971c422f43f86d0a.zip
Removed some empty *.cpp files and Solved some new problems
Diffstat (limited to 'codeforces/Tram')
-rwxr-xr-xcodeforces/Tram/mainbin27800 -> 22664 bytes
-rwxr-xr-xcodeforces/Tram/main.cpp11
2 files changed, 6 insertions, 5 deletions
diff --git a/codeforces/Tram/main b/codeforces/Tram/main
index 3c01372..efe2012 100755
--- a/codeforces/Tram/main
+++ b/codeforces/Tram/main
Binary files 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<bits/stdc++.h>
+#include <bits/stdc++.h>
+#include <vector>
using namespace std;
@@ -9,9 +10,9 @@ typedef vector<int> 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';
}