abc183_a - Relu
04 Jan 2021 — Tags: easy — URLRELU(x) = max(0, x)
Time complexity: $O(1)$
Memory complexity: $O(1)$
Click to show code.
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;
int main(void)
{
ios::sync_with_stdio(false), cin.tie(NULL);
int x;
cin >> x;
cout << max(0, x) << endl;
return 0;
}