your program reads two numbers from <>. The intention is not clear to me.
It's pretty common on sites like HackerRank etc. to have the solutions first read in the number of test cases, and then read in each test case.
In reply to Re^2: problem while solving basic dynamic programming question
by haukex
in thread problem while solving basic dynamic programming question
by yujong_lee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |