My code is not able to pass the test case: Please help me with the code
Painter problem - c++ beginner problem
@prkfoxxx
Hello Priyansh,
- change your data type of sum and ans to long long because total sum can exceeds int range
- you need to print ans % 10000003
- you havent considered T (time taken by worker to print one unit)
pls read problem statement carefully
@prkfoxxx
brother you havent considered T (time taken by worker to print one unit of board) also convert int datatype to long long type
