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 19, 2024 00:28Mikhail ShirokovMikhail ShirokovScore: 1,502,306Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 00:281,487,2446,724,541,9852,988,588,0003,704,010,0002,277,376
2Dec 19, 2024 00:281,488,8206,734,510,6452,935,112,0003,764,579,0002,273,280
3Dec 19, 2024 00:281,489,2826,732,990,6402,957,251,0003,744,519,0002,277,376
4Dec 19, 2024 00:281,491,6276,742,867,5752,962,377,0003,749,946,0002,523,136
5Dec 19, 2024 00:281,502,3066,791,701,9162,885,174,0003,875,205,0002,277,376
6Dec 19, 2024 00:281,506,0686,807,954,1233,006,362,0003,770,946,0002,277,376
7Dec 19, 2024 00:281,522,5696,879,832,1002,969,642,0003,881,918,0002,277,376
8Dec 19, 2024 00:281,563,1817,062,477,3613,116,481,0003,917,833,0002,260,992
9Dec 19, 2024 00:281,820,6408,225,551,9863,390,467,0004,802,413,0002,277,376