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 listDec 31, 2025 17:08Aniruddha DebAniruddha DebScore: 4,198Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2025 17:134,01537,968,46217,066,0001,003,0002,428,928
2Dec 31, 2025 17:084,01635,550,83617,070,0001,004,0002,273,280
3Dec 31, 2025 17:134,01743,971,57316,068,0002,008,0002,424,832
4Dec 31, 2025 17:044,02133,847,03217,088,0001,005,0002,428,928
5Dec 31, 2025 17:034,02239,825,83617,093,0001,005,0002,535,424
6Dec 31, 2025 17:134,02238,712,31817,095,0001,005,0002,535,424
7Dec 31, 2025 17:084,02238,672,04316,090,0002,011,0002,428,928
8Dec 31, 2025 17:044,02333,519,29517,100,0001,005,0002,437,120
9Dec 31, 2025 17:084,02342,228,79217,099,0001,005,0002,428,928
10Dec 31, 2025 17:084,04638,701,14517,196,0001,011,0002,433,024
11Dec 31, 2025 17:024,06336,772,39617,268,0001,015,0002,428,928
12Dec 31, 2025 17:084,07439,695,42817,313,0001,018,0002,273,280
13Dec 31, 2025 17:034,07736,854,83218,348,00002,535,424
14Dec 31, 2025 17:084,09249,271,55317,390,0001,022,0002,424,832
15Dec 31, 2025 17:034,19848,648,10017,899,000994,0002,535,424
16Dec 31, 2025 17:134,19837,112,42717,897,000994,0002,424,832
17Dec 31, 2025 17:134,20142,414,73217,910,000995,0002,433,024
18Dec 31, 2025 17:024,20543,690,24918,921,00002,424,832
19Dec 31, 2025 17:134,20643,030,76516,934,0001,992,0002,535,424
20Dec 31, 2025 17:084,20740,562,03117,935,000996,0002,428,928
21Dec 31, 2025 17:084,20744,881,66217,934,000996,0002,535,424
22Dec 31, 2025 17:084,20938,602,31317,944,000996,0002,428,928
23Dec 31, 2025 17:024,21039,113,52516,952,0001,994,0002,416,640
24Dec 31, 2025 17:134,21043,003,69616,950,0001,994,0002,428,928
25Dec 31, 2025 17:084,21340,406,27316,963,0001,995,0002,510,848
26Dec 31, 2025 17:044,21842,172,31917,982,000999,0002,535,424
27Dec 31, 2025 17:084,22041,203,64317,990,000999,0002,424,832
28Dec 31, 2025 17:134,22442,904,62018,010,0001,000,0002,424,832
29Dec 31, 2025 17:134,23241,600,96218,043,0001,002,0002,535,424
30Dec 31, 2025 17:084,26043,053,14117,154,0002,018,0002,424,832