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 5, 2026 15:28Karthik 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 5, 2026 15:29016,609,9617,886,000020,480expected "3474139065109780 ", got "98 7209 100 5979 5172 5502 8088 4603 4154 4074 4159 4087 4061 4076 4072 4087 4074 4055 "
2Oct 5, 2026 15:29016,559,1297,639,000020,480expected "3469291728897829 ", got "96 6942 101 6413 5332 5037 4818 4567 4659 4209 4073 4094 4042 4058 4117 4061 4142 4063 "
3Oct 5, 2026 15:29020,028,9988,213,000020,480expected "3472966409348373 ", got "98 7527 98 8764 8028 6340 4996 4241 4121 4078 4112 4161 4116 4203 4123 4104 4063 4077 "