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 listNov 21, 2024 02:00Mikhail ShirokovMikhail ShirokovScore: 2,057,731Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 21, 2024 02:032,032,0099,367,254,7175,312,023,0003,832,017,00029,507,584
2Nov 21, 2024 02:032,035,2839,381,847,4715,279,870,0003,878,904,00029,650,944
3Nov 21, 2024 02:032,041,3109,411,091,6135,284,213,0003,901,680,00029,483,008
4Nov 21, 2024 02:032,042,3239,418,304,3915,331,722,0003,858,733,00029,650,944
5Nov 21, 2024 02:002,051,8109,453,853,7195,357,925,0003,875,222,00029,487,104
6Nov 21, 2024 02:032,053,1549,460,462,0905,270,969,0003,968,224,00029,548,544
7Nov 21, 2024 02:032,057,7319,492,595,9875,266,881,0003,992,910,00029,532,160
8Nov 21, 2024 02:032,077,8339,572,362,2255,452,726,0003,897,523,00029,528,064
9Nov 21, 2024 02:032,088,4449,627,677,9555,378,148,0004,019,848,00029,511,680
10Nov 21, 2024 02:032,109,1049,708,799,9535,473,136,0004,017,834,00029,577,216
11Nov 21, 2024 02:002,142,5839,866,683,4585,409,473,0004,232,152,00029,519,872
12Nov 21, 2024 02:002,169,9769,991,831,9455,561,800,0004,203,093,00029,503,488