Add's to GJ's effort and counts how many occurrences of the odd integer to be able to return exact answer (not a $ZABS answer).

ClassMethod Solve(o As %String) As %Integer

{

 s i=$l(o,","),j=$l(o,"-")-1,k=i-j-j s:k<0 k=k-j-j s m=$tr(o,",","+")_"/"_k

 q @m

}

Thanks Robert. I guess that by now all the points worth gaining are gone so it won't hurt to post this. Is this the sort of answer that is being looked for?

(Rename classname to Day1?, Entry point should be ClassMethod Test()?)

So it is a race. And being awake at the right time no matter where you are in the world is a big advantage given a fixed start time of Midnight UTC-5.

Thanks for the quick reply. Yep, worked first time on a MAC. 

Still not sure of the rules, and given your experience, I'm not sure it will be enjoyable. Can't believe this is the template:

At least I've gained some knowledge on some of what can be done with Docker.

I was going to play but it is difficult to get started.

Tried to get the template, downloaded git and Docker desktop, got a git account, got IRIS working through Docker - was quite impressed with that) but cannot get the template. Am getting at least 2 errors on "docker-compose build" command:

Is it possible to play without the template? Surely it's just a class in UDL format?

The day 1 problem is easy to solve. I expect most of us could do it in one line of code. But what are the rules? How does the scoring work? Is it a race? Do you need to be in the first 5 people to finish it every day? Is it judged by someone? If so, what are you looking for? If you can't get your entry in on day 1 will you be too far behind?

Going to try it on a MAC instead of Windows, maybe that will help.

or include

S X=$ZU(123,0,1,1)

in your system startup routine so that the only date that ever shows up with a 2 digit year is 1st Jan 1841

Check out the old %DATE utility