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 16, 2026 18:11olliecrowolliecrowScore: 9,116Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2026 16:138,85770,641,59737,864,0001,992,0002,371,584
2Apr 16, 2026 16:138,91169,902,34839,097,0001,002,0002,363,392
3Mar 21, 2026 18:528,92770,123,81039,167,0001,004,0002,461,696
4Mar 21, 2026 18:528,93069,340,42738,174,0002,009,0002,367,488
5Mar 21, 2026 18:528,94071,458,80739,223,0001,005,0002,379,776
6Apr 16, 2026 17:318,94267,736,31538,227,0002,011,0002,371,584
7Mar 22, 2026 22:338,95269,335,68138,268,0002,014,0002,371,584
8Apr 16, 2026 17:318,95266,756,89939,277,0001,007,0002,465,792
9Apr 16, 2026 17:318,96272,646,14939,320,0001,008,0002,473,984
10Mar 22, 2026 22:338,97666,628,74838,372,0002,019,0002,371,584
11Mar 22, 2026 22:338,98368,269,67738,404,0002,021,0002,371,584
12Apr 16, 2026 16:139,03267,673,34538,614,0002,032,0002,461,696
13Apr 16, 2026 16:199,08470,249,85639,880,000997,0002,371,584
14Apr 7, 2026 04:289,11668,958,79140,020,0001,000,0002,371,584
15Apr 16, 2026 16:199,12270,331,39839,046,0002,002,0002,465,792
16Apr 7, 2026 04:289,15170,051,60739,171,0002,008,0002,363,392
17Apr 16, 2026 16:579,15766,457,77839,196,0002,010,0002,371,584
18Apr 16, 2026 16:579,16765,374,93140,246,0001,006,0002,371,584
19Apr 16, 2026 16:579,17163,675,99239,256,0002,013,0002,371,584
20Apr 7, 2026 04:289,17269,025,71038,255,0003,020,0002,334,720
21Apr 16, 2026 16:199,19060,475,67239,339,0002,017,0002,473,984
22Apr 16, 2026 17:119,41968,463,12140,368,0002,018,0002,371,584
23Apr 16, 2026 17:119,45571,679,07440,520,0002,026,0002,486,272
24Apr 16, 2026 17:119,47566,587,53342,636,00002,363,392
25Apr 16, 2026 18:119,89370,587,04944,520,00002,433,024
26Apr 16, 2026 18:119,89570,921,49544,529,00002,428,928
27Apr 16, 2026 18:119,97276,432,74841,882,0002,991,0002,428,928