Problem Link: http://www.spoj.com/problems/OPSL/Is my logic wrong?[bbone=text,767]Code Removed.[/bbone]
I gave an answer : http://www.spoj.com/forum/viewtopic.php?f=3&t=22456&sid=898ef028664accd886ce87d0bd1e9293that might help you. It isn't related to used language.
Before creating a new topic, better is to check existing ones, and read others issues, it could help.
use mod only once while printing final answer.stackoverflow.com/questions/1663 ... 1000000007for more information read this article , also please remove your code.
Thanks Lakshman and francky, sorry didn't know there was a thread, I'll check from next time, thanks for now.