I have seen in some codes that people define a variable and assign values like 1e-8 or 1e5.
for example
const int MAXN = 1e5 + 123;
What are these numbers? I couldn't find any thing on the web...
1e5 is a number expressed using scientific notation and it means 10 to the 5th power (the e meaning 'exponent')
1e5
so 1e5 is equal to 100000, both notations are interchangeably meaning the same.
100000
2.1m questions
2.1m answers
60 comments
57.0k users