Skip to content

Commit f6e3dc2

Browse files
committed
atcoder/abc052A (feedback from editorial)
1 parent 84b04e3 commit f6e3dc2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

atcoder/abc052/A/main.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ int main() {
1111
cin >> A >> B >> C >> D;
1212

1313
int S = A * B, R = C * D;
14-
if (S > R) {
15-
cout << S << endl;
16-
} else {
17-
cout << R << endl;
18-
}
14+
cout << max(S, R) << endl;
1915

2016
return 0;
2117
}

0 commit comments

Comments
 (0)