-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcheck.cpp
86 lines (71 loc) · 1.07 KB
/
check.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <map>
#include <queue>
#include <set>
#include <utility>
#include <algorithm>
#include <cmath>
using namespace std;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define EB emplace_back
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef long long int lli;
lli solve()
{
lli n, m, x;
cin >> n >> m >> x;
lli ans = 1;
lli temp = 1;
lli col = 0, row = 0;
while (temp < x)
{
col++;
temp += n;
}
while (x != temp)
{
temp++;
row++;
}
while (row--)
{
ans += m;
}
while (col--)
{
ans++;
}
return ans;
}
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
// int cases;
// cin >> cases;
// int k = 1;
// while (cases--)
// {
// cout << solve() << endl;
// }
int a = 320;
char *ptr;
ptr = (char *)&a;
printf("%d", *ptr);
return 0;
}