ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1855. Trade Guilds of Erathia

WA6
Posted by Zearot 29 Aug 2014 15:43
I used segment tree to solve it and got WA6.
What's special about test 6? Thanks.
Re: WA6
Posted by mxzf0213 15 Sep 2016 12:46
Always remember to use long long!
please notice that a*b maybe exceed INT_MAX!
I have wa 6 and change this to ac!