C++

No description

fork
loading
Files
  • main.cpp
  • input.txt
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <iostream>
#include <string>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <fstream>
using std::ifstream;
#define fri(i,n) for(int i = 0 ; i < n;++i) //inc from front
#define jri(j,k,n) for(int j = k ; j >= n;j--) //dec frm last
#define inp(i) cin >> i
#define inp3(i,j,k) cin >> i >> j >> k
#define oup(i) cout << i << "\n"
#define toup(i) cout << "output - "<<  i << "\n"
#define mod 1000000007

typedef long long int lli;
// typedef pair<int,int> pii;
// typedef vector<int> vec;
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define MAXN 1000000
using std::cin;
using std::endl;
using std::cout;
using std::vector;
using std::string;
using std::sort;
using std::ios_base;

int numofdollars(int val , int d){
	d = val/2;
	return d;
}

int main()
{
		ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
		ifstream in("input.txt");
		int val,d;
    // while(in >> val){
			in >> val;
			toup(numofdollars(val,d));
    // }
    return 0;
}