Skip to content

Commit 70dcfb6

Browse files
committed
Added 669A - Little Artem and Presents.cpp
1 parent 1717d44 commit 70dcfb6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

669A - Little Artem and Presents.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
int main()
7+
{
8+
int n;
9+
cin>>n;
10+
int gift=0;
11+
gift=2*(n/3);
12+
if(n%3>0)
13+
{
14+
gift++;
15+
}
16+
cout<<gift<<endl;
17+
}
18+

0 commit comments

Comments
 (0)