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 listMay 5, 2026 06:04olliecrowolliecrowScore: 10,160Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 06:0710,15061,546,80544,645,0001,032,0002,457,600
2May 5, 2026 06:0710,15261,447,29544,655,0001,033,0002,457,600
3May 5, 2026 06:0710,15460,150,14444,644,0001,053,0002,457,600
4May 5, 2026 06:0710,15759,378,17544,676,0001,034,0002,441,216
5May 5, 2026 06:0710,16061,262,93344,680,0001,044,0002,461,696
6May 5, 2026 06:0710,16264,875,97944,670,0001,061,0002,457,600
7May 5, 2026 06:0710,16263,907,10044,665,0001,066,0002,453,504
8May 5, 2026 06:0710,16563,945,13244,700,0001,046,0002,457,600
9May 5, 2026 06:0710,20063,957,55244,843,0001,059,0002,457,600