The same code for 580D - Kefa and Dishes is accepted using GNU [submission:13170436]and gets TLE using Microsoft compiler [submission:13156910]. I do not know the reason for this, but I think GNU optimizes recursion more than Microsoft.
Anybody knows the reason for this ?