Closing the Tweets: C version

http://www.codechef.com/problems/TWTCLOSE

PASSED
Closing the Tweets: input

Correct output:
1
2
3
2
0
1