So perhaps, you've generated some fancy text, and you're content that you can now copy and paste your fancy text in the comments section of funny cat videos, but perhaps you're wondering how it's even possible to change the font of your text? Is it some sort of hack? Are you copying and pasting an actual font?
days++;
earth++;
mars++;
earth %= 365;
mars %= 687;
}
Console.Write(days);
Console.Write("\n");
Console.ReadLine();
n++;
}
}
}
It appears you're only missing a way to process the sample input. It sounds like it's coming in "lines", but that's not really defined, so in this example I'm just using an array. I'm ignoring the fact that the first item specifies the number of testcases, since in this implementation the number is calculated.
Basically I'm just walking through the array, grabbing two items at a time (skipping the first one), and using those values for
earthandmars. The rest is mostly your code (except some changes to outputting to the console):Output