Skip to content

Commit e530b9c

Browse files
committed
Added 996A - Hit the Lottery.cpp
1 parent 35e9e7c commit e530b9c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

996A - Hit the Lottery.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ॐ नमः शिवाय
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
#define pb push_back
5+
6+
// Code Written By: Vikash Patel
7+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
8+
9+
int main()
10+
{
11+
int n;
12+
cin>>n;
13+
int bills = 0;
14+
int x = n/100;
15+
int y = (n%100)/20;
16+
int z = ((n%100)%20)/10;
17+
int a = (((n%100)%20)%10)/5;
18+
int b = ((((n%100)%20)%10)%5);
19+
cout<<x+y+z+a+b<<endl;
20+
return 0;
21+
}

0 commit comments

Comments
 (0)