Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listOct 6, 2026 02:11Karthik ReddyKarthik ReddyError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2026 02:12018,887,9227,786,000020,480expected "3467667106002118 ", got "2222 7080 143 6436 7074 6349 4093 4067 4127 4065 4139 4064 4049 4100 4051 4065 4086 4125 "
2Oct 6, 2026 02:12019,221,1858,042,000020,480expected "3470197210565522 ", got "2223 7364 129 7738 7436 6992 4124 4335 4073 4132 4377 4113 4162 4050 4088 4056 4023 4096 "
3Oct 6, 2026 02:12018,278,4697,152,000020,480expected "3471460997384772 ", got "2243 6424 131 5245 4246 4084 4051 4069 4029 4053 4135 4070 4108 4083 4072 4085 4058 4079 "