Skip to content

Commit 00dc46e

Browse files
committed
Added 581A - Vasya the Hipster.cpp
1 parent 190cd59 commit 00dc46e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

581A - Vasya the Hipster.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
int main()
7+
{
8+
int a,b;
9+
cin>>a>>b;
10+
int diff=min(a,b);
11+
int maxi=max(a,b);
12+
int same=(maxi-diff)/2;
13+
cout<<diff<<" "<<same<<endl;
14+
}

0 commit comments

Comments
 (0)