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 listApr 22, 2026 15:09olliecrowolliecrowScore: 837,629Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 15:11827,5933,732,454,2363,723,171,000999,0002,318,336
2Apr 22, 2026 15:11829,5463,740,569,6393,729,963,0002,998,0002,441,216
3Apr 22, 2026 15:11830,2323,745,095,7913,735,049,000999,0002,523,136
4Apr 22, 2026 15:11832,8623,757,589,8263,745,881,0001,998,0002,326,528
5Apr 22, 2026 15:11837,6293,777,686,0693,767,333,0001,999,0002,326,528
6Apr 22, 2026 15:11837,8443,780,029,2123,769,301,000999,0002,314,240
7Apr 22, 2026 15:11839,3603,785,902,5963,775,121,0001,999,0002,314,240
8Apr 22, 2026 15:11840,6623,791,180,0563,781,981,000999,0002,322,432
9Apr 22, 2026 15:11841,1163,793,485,4323,782,026,0002,998,0002,326,528