Ahmed_Hussein_Karam's blog

By Ahmed_Hussein_Karam, history, 8 months ago, In English

Could anyone let me know why this submission doesn't work?

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
8 months ago, # |
  Vote: I like it -9 Vote: I do not like it

Because 1 <= x <= 10^12, so you need to set i = long long (line 37).

»
8 months ago, # |
  Vote: I like it +7 Vote: I do not like it

don't use pow(), it's rather inaccurate