Paint the Tree: input #1

Correct output:
12
Paint the Tree: input #2

Correct output:
613
Bytelandian gold coins: python version

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

This did not pass though because it is too slow.
Bytelandian gold coins: input

Correct output:
13
2
Bytelandian gold coins: C version

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

PASSED
Marbles: C version

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

PASSED
Marbles: input

Correct output:
1
475020
.gitignore
Closing the Tweets: C version

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

PASSED
Closing the Tweets: input

Correct output:
1
2
3
2
0
1
The Next Palindrome: C version

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

PASSED
The Next Palindrome: input

Correct output:
818
2222
Root of the Problem: C version

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

PASSED
Root of the Problem: input

Correct output:
4
6