-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path313A.cpp
More file actions
55 lines (51 loc) · 1.13 KB
/
313A.cpp
File metadata and controls
55 lines (51 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma GCC Optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define MOD 1e9 + 7
#define bg begin()
#define ed end()
#define sz size()
#define len length()
#define vi vector<int>
#define pai pair<int, int>
#define sett set<int>
#define umpi unordered_map<int, int>
#define vpair vector<pair<int, int>>
typedef unsigned long long int ull;
typedef long long int lli;
typedef long int li;
namespace comp {
bool compasc1(const pair<int, int> &a, const pair<int, int> &b) {
return a.F < b.F;
}
bool compasc2(const pair<int, int> &a, const pair<int, int> &b) {
return a.S < b.S;
}
bool compdsc1(const pair<int, int> &a, const pair<int, int> &b) {
return a.F > b.F;
}
bool compdsc2(const pair<int, int> &a, const pair<int, int> &b) {
return a.S > b.S;
}
} // namespace comp
namespace Fastio {
void fastio() {
ios_base::sync_with_stdio(0);
cin.tie(0);
}
} // namespace Fastio
using namespace comp;
using namespace Fastio;
int main() {
Fastio::fastio();
li n;
cin >> n;
if (n > 0)
cout << n << endl;
else {
cout << max(n / 10, (n % 10) + (n / 100) * 10) << endl;
}
return 0;
}