DOJ
Problems
Recently added problems
Saved problems
Workbooks
Categories
DLC
Contests
Groups
Teams
Board
Ranking
Solved Problem Ranking
Streak ranking
DOJ Power ranking
Status
Call for Tasks
translate
English
expand_more
light_mode
Light
Login
Register
Editorial
A-B
Back to problem
Editorial
Read two integers
A
A
A
and
B
B
B
, then print
A
−
B
A-B
A
−
B
.
The time complexity is
O
(
1
)
O(1)
O
(
1
)
.