Comments
|
+1
You can run your code on the server-side. Use “custom test” tab in the contest dashboard. |
|
+5
You must normalize pref array like this way: You must do the same for suff array. |
|
+5
map<pair<int, int>, int> pair<int, int> means a fraction first/second. You must divide first and second into gcd. |
|
0
Nice =)
|
|
0
Can you explain your solution?
|
|
+5
Why is it correct? Gauss method may be used, if there are unique solution (determinant != 0). In another case, there are multiple solution (maybe, no solution). How are you choose the minimal answer? In my opinion, you're wrong. So, I think bruteforce is correct way to solve. |
|
On NALP →
School Individual Contest #1 (WCS 2010/11) - Codeforces Beta Round #38 (ACM-ICPC Rules), 19 months ago
+1
Sorry. fixed.
|
|
On NALP →
School Individual Contest #1 (WCS 2010/11) - Codeforces Beta Round #38 (ACM-ICPC Rules), 19 months ago
+12
Don't worry. Round will be rated for them too.
People, who are considered out of competition, are participants of Codeforces Round #38, others are participants of School Personal Contest #1. But we will use merged result table for updating rating. |
|
0
use printf("%I64d\n", ans);
|



