https://atcoder.jp/contests/arc114/tasks/arc114_a — Problem Link
https://atcoder.jp/contests/arc114/submissions/22547550 — Submission Link
This submission gets AC verdict in this problem.But it shouldn't.Because just look at this case:
6.....45 15 21 35 33 7
This Gives Output : 105 But the Optimal Answer is : 21
This was a problem from a contest like ARC.So shouldn't there be option for hacking solutions in AtCoder???