FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Atcoder/template.cpp at main · Glan-Sheep/Atcoder · GitHub
Glan-Sheep
/
Atcoder
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Atcoder
/
template.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (41 loc) · 1.27 KB
Breadcrumbs
Atcoder
/
template.cpp
Copy path
File metadata and controls
47 lines (41 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
include
<
bits/stdc++.h
>
using
namespace
std
;
/*
alias
*/
//
type
using
ull =
unsigned
long
long
;
using
ll =
long
long
;
using
ld =
long
double
;
//
pair
using
pii = pair<
int
,
int
>;
//
vector
using
vi = vector<
int
>;
using
vl = vector<
long
>;
using
vll = vector<ll>;
using
vvi = vector<vi>;
using
vvl = vector<vl>;
using
vvll = vector<vll>;
using
vs = vector<string>;
using
vpii = vector<pii>;
/*
define short
*/
#
define
mp
make_pair
#
define
all
(
obj
) (obj).begin(), (obj).end()
#
define
YesNo
(
bool
)
if
(
bool
){cout<<
"
Yes
"
<<endl;}
else
{cout<<
"
No
"
<<endl;}
/*
REP macro
*/
#
define
reps
(
i, a, n
)
for
(ll i = (a); i < (ll)(n); ++i)
#
define
rep
(
i, n
) reps(i,
0
, n)
#
define
rrep
(
i, n
) reps(i,
1
, n +
1
)
#
define
repd
(
i,n
)
for
(ll i=n-
1
;i>=
0
;i--)
#
define
rrepd
(
i,n
)
for
(ll i=n;i>=
1
;i--)
//
定数
#
define
inf
2147483647
;
#
define
INF
9223372036854775807
;
/*
func
*/
inline
int
in_int
() {
int
x; cin >> x;
return
x;}
inline
ll
in_ll
() {ll x; cin >> x;
return
x;}
inline
double
in_double
() {{
double
x; cin >> x;
return
x;}}
inline
string
in_str
() {string x; cin >> x;
return
x;}
inline
int
ctoi
(
char
c) {
return
c -
'
0
'
;}
template
<
class
T
>
bool
chmax
(T& a,
const
T& b) {
if
(a < b) { a = b;
return
1
; }
return
0
; }
template
<
class
T
>
bool
chmin
(T& a,
const
T& b) {
if
(b < a) { a = b;
return
1
; }
return
0
; }
int
main
() {
}
Back
|
FazBrowse Home
|
New Git URL