Блог пользователя drakath

Автор drakath, история, 3 года назад, По-английски

Hello there.

After installing V8 engine locally, I was wondering why Codeforces supports version 4.8 and not any newer ones? I think the latest version is 9.5. I do realize that newer does not equate to better, but at the same time I do not understand why the platform went for version 4.8 and stuck with it for a long time. Can anyone explain that to me please? Please do let me know if I am missing something (which I have for sure), I'd appreciate that.

Have a nice day fellas!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится

Автор drakath, история, 4 года назад, По-английски

Good evening/morning to all,

I am new to this cult of competitive programming, been practicing for about a month seriously, I encountered a problem ( mentioned in the title ) which gives 3 numbers and you've got to find an arithmetic of only + and * that produces the largest value. I use Python and here's my logic: a = int(input()) b = int(input()) c = int(input()) if max(a,b,c)==a: print(max(a*b*c,a*(b+c),a+b+c)) elif max(a,b,c)==b: print(max(a*b*c,b*(a+c),a+b+c)) else: print(max(a*b*c,c*(a+b),a+b+c))

when submitted, It got rejected when given the numbers 6,7 and 1. My program gave back 49, while the jury's gave back 48, which makes no sense to me. Some clarification please ?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -23
  • Проголосовать: не нравится