This one was really easy, and it got accepted on my first try. Actually, it compiled on my first try too (not even a silly typing mistake), but didn't work the first time I ran it locally (stupid mistake, I did cin >> count instead of cin >> n ;)). But I think this is my first submission where I got 'Accepted' on the first submit. woo!
my solution