au_au's blog

By au_au, history, 9 hours ago, In English

When to use int or long long int

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

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

dont use int, use long double

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

    Can you please explain? why?

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

      Yes

»
9 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

»
8 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.