-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPRESENTS.cpp
More file actions
64 lines (61 loc) · 1.39 KB
/
Copy pathPRESENTS.cpp
File metadata and controls
64 lines (61 loc) · 1.39 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
///*Bismillahir Rahmanir Rahim***///
///**Author Thasin Sheikh**///
#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<class T> using myset=tree<T,null_type,less_equal<T>,rb_tree_tag,tree_order_statistics_node_update>;
#define MAX 1e6+10
#define MOD 1000000007
#define PI acos(-1)
#define R 510
#define makefast__ ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
using ll=long long int ;
using dl =double;
using ld=long double;
using ull=unsigned long long;
const long N = 3e5 + 10;
const long maxn=5e5+10;
const long long maxval=1e18;
const long long minval=-1e18;
ll aarray[N];
ll magic[R][R];
vector<ll>primes;
//bool check[1000001];
//ll large[10000005];
int dx[] = {-1 , 0 , 1 , 0};
int dy[] = {0 , 1 , 0 , -1};
ll vis[N];
vector<ll>ed[N];
map<ll,ll>mp;
void solve()
{
ll i,j,k,m,n,l,r,q,p,ans,sum=0,a,b,c,d;
string str;
bool yes=true;
vector<ll>v;
cin>>n;
ans=n/5;
ans*=4;
ans+=n%5;
cout<<ans<<"\n";
}
int main()
{
//freopen("input.txt","r",stdin);
//freopen("output.txt","w",stdout);
//tle khaite chas to endl use kor
//check test case in interactive , idiot
//never use pow func directly
//add and subtract
makefast__
string str;
ll i,j,n,m,k,t;
cin>>t;
while(t--)
{
solve();
}
return 0;
}