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:12Karthik 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:12016,209,5677,128,000020,480expected "3474573424537383 ", got "116 6424 117 5153 4229 4097 4049 4116 4067 4095 4044 4042 4069 4068 4167 4071 4068 4127 "
2Oct 6, 2026 02:12016,461,0117,422,000020,480expected "3473721097919754 ", got "110 6715 120 7125 5051 4131 4104 4098 4049 4097 4080 4107 4087 4052 4155 4072 4129 4055 "
3Oct 6, 2026 02:12016,721,0597,723,000020,480expected "3471710230002233 ", got "107 7020 118 5974 5080 7333 5109 4091 4073 4069 4050 4084 4055 4086 4113 4056 4174 4084 "