# CLASSMONITOR - Editorial

**URL:** <https://discuss.codechef.com/t/classmonitor-editorial/99910>\
**Category:** editorial\
**Tags:** editorial, medium\
**Created:** [March 12, 2022, 9:32pm UTC](https://discuss.codechef.com/t/classmonitor-editorial/99910 "2022-03-12T21:32:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awesome\_amul](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@awesome\_amul](https://discuss.codechef.com/u/awesome_amul)\
**Post date:** [March 12, 2022, 9:32pm UTC](https://discuss.codechef.com/t/classmonitor-editorial/99910/1 "2022-03-12T21:32:40Z")

</div>

[Practice](https://www.codechef.com/DECO2022/problems/CLASSMONITOR)

_ **Author:** _ [amul agrawal](https://www.codechef.com/users/awesome_amul)

# DIFFICULTY:

MEDIUM

# EXPLANATION:

The algorithm itself is incorrect. We can hack this solution with a simple hack case like

```auto
4
2 3 6 8

```

The wrong answer code will make 3 lines `2 6` , `3` and `8`.  
The correct solution should make 2 lines `2 8` and `3 6`.
