AlexeyDmitriev / JHelper

GNU Lesser General Public License v3.0
119 stars 31 forks source link

Get the Test number # for codejam or kickstart #115

Closed Ziklon closed 4 years ago

Ziklon commented 4 years ago

The current task.template does not support testNumber.

void solve(int caseNumber, std::istream& in, std::ostream& out) {

}
AlexeyDmitriev commented 4 years ago

This behaviour can be emulated now: https://github.com/AlexeyDmitriev/JHelper/wiki/Adding-a-GCJ-style-output

I don't really want to merge it as proposed at the moment because 1) the variable is unused most of the time 2) it's easy to emulate 3) it will break compatibility for everybody (everybody will have to either delete their task.template or adopt it)

your thoughts?

Ziklon commented 4 years ago

I agree using the emulate way, resolving this.