au_au's blog

By au_au, history, 4 hours ago, In English

When to use int or long long int

  • Vote: I like it
  • -3
  • Vote: I do not like it

»
4 hours ago, # |
  Vote: I like it +9 Vote: I do not like it

dont use int, use long double

  • »
    »
    4 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Can you please explain? why?

    • »
      »
      »
      4 hours ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Yes

»
4 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

You can use int in constraints like n <= 10^9 or lesser and long long in larger constraints

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

don't care about int and long long int. use short int everywhere.