afrizal's blog

By afrizal, 10 years ago, In English

Hello everyone

I had submitted some solutions on 443C. They got WA on test 3 (even after I use 2 different languages, cpp and java). But when I tested in my compiler (g++ 4.8.1 and JDK 1.7.0), custom invocation on CF, and even ideone.com, they make correct output.

Could someone tell me whats happened? Thank you for your help

C++ submission : 6934350

Tested in ideone.com

Java submission : 6936214

Tested on ideone.com

Full text and comments »

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

By afrizal, 10 years ago, In English

Hi all. I have question. When we mod the hash value of substring, we need prime number, right? Are there some optimal prime numbers so that same hash value of different pattern can be minimized?

Thanks

Full text and comments »

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