-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMod.cpp
More file actions
executable file
·40 lines (36 loc) · 732 Bytes
/
Mod.cpp
File metadata and controls
executable file
·40 lines (36 loc) · 732 Bytes
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
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define ll long long
#define F first
#define S second
#define ONLINE_JUDGE freopen("input","r",stdin); freopen("output","w",stdout);
#define M 1000000007
#define pb(x) push_back(x)
#define N 100001
#define endl "\n"
void MOD(ll &x)
{
if (x >= M) x -= M;
if (x < 0) x += M;
}
ll func(ll a, ll x)
{
ll m=64;
ll y=x%m;
ll val = (y*a)%m;
return val;
}
int main()
{
ONLINE_JUDGE
ios_base::sync_with_stdio(false);
cin.tie(NULL);
for(ll i=1; i<=2; i++)
{
// cout<<func(i,2010)<<endl;
// cout<<func(i,2013)<<endl;
// cout<<func(i,2007)<<endl;
cout<<func(i,2015)<<endl;
}
}