Skip to content

Commit 0ba026c

Browse files
authored
atcoder solutions in cpp
1 parent 3cbb295 commit 0ba026c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Day of Takahashi.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <iostream>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
int a, b;
7+
cin >> a >> b;
8+
9+
if (a <= b)
10+
cout << a << endl;
11+
else
12+
cout << a-1 << endl;
13+
return 0;
14+
}

0 commit comments

Comments
 (0)