Function mktime is not added to SPOJ (and it give NZEC - "Fatal error: mktime(): Timezone database is corrupt - this should never happen! in /solutions/solution on line 2"), but it is added to ideone.
So my request is obvious - please add mktime to SPOJ.