1:04 PM
Speaking of further changes, something to support having multiple test cases when the code uses
G
would be good
i.e., when the code uses
G
(or worse, nG
), the usual trick of wrapping it in ` ... DT doesn't work properly because G doesn't change
If the input is a single value, we can assign each input to H (in the header) and use H instead of G in the multiple test cases code
but if we have 2 or 3 inputs per test case for eg., it's hard to replicate
1G
or 2G
in the inner code and have it be really equivalent
2 hours later…
2:59 PM
@sundar In those cases you can use modular addressing in
G
. So 0G
always gives the last input, -1G
the second-last etc
3 hours later…
6:17 PM
@LuisMendo But that would mean 1 more byte for the -, which means that's not going to be the main submission version. That's what it would be nice to avoid - having (slightly) different versions of the code for the single test case version and the multiple cases version.
And I'm not sure if there's any current way to neatly change this answer from single test case two-input version to multiple test case two-input-per-case version (
,it0)'k'-tUw6*+qw3L)U*]>G
for the Go rank qn)
4 hours later…
10:35 PM
I can include
Zx
(unless Dennis replies affirmatively to this). It's only a bit troublesome because the way program state is initiallized right now, but no big deal.
« first day (828 days earlier) ← previous day next day → last day (2087 days later) »