Koying
競程常見數學符號
Try
HackMD
Koying
·
Follow
Last edited by
Koying
on
Jan 26, 2023
Linked with GitHub
Contributed by
2
Edit
0
Comments
Feedback
Log in to edit or delete your comments and be notified of replies.
Sign up
Already have an account? Log in
There is no comment
Select some text and then click Comment, or simply add a comment to this page from below to start a discussion.
Discard
Send
競程常見數學符號
O
(
)
:用來描述一個函數的「上界」,在競程中用來表示時間複雜度
∑
i
=
1
n
i
:求和符號(此例子表示
1
∼
n
的和)
∏
i
=
1
n
i
:連乘符號,運作原理與求和符號相似,不過把加改成乘
⌈
a
b
⌉
:
a
b
取上高斯(小數點無條件進位)
⌊
a
b
⌋
:
a
b
取下高斯(小數點無條件捨去)
a
mod
b
:
a
除以
b
的餘數
a
≡
b
(
mod
P
)
:
a
與
b
在
mod
P
的環境下同餘
a
∣
b
:
a
整除
b
,
a
≡
0
(
mod
b
)
gcd
(
a
,
b
)
:
a
,
b
的最大公因數
lcm
(
a
,
b
)
:
a
,
b
的最小公倍數
AND:在 C++ 中以 & 表示,當兩個 bit 都為
1
時為
1
,否則為
0
OR:在 C++ 中以
∣
表示,當兩個 bit 有至少一個為
1
時為
1
,否則為
0
XOR:在 C++ 中以 ^ 表示,當兩個 bit 洽有一個為
1
時為
1
,否則為
0
NOT:在 C++ 中以 ~ 表示,代表將
0
轉為
1
,
1
轉為
0
2
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up
Comment