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 01:49Mikhail ShirokovMikhail ShirokovScore: 2,088,880Success
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 01:492,054,9809,477,783,0965,372,819,0003,874,591,00029,646,848
2Nov 21, 2024 01:492,059,2219,489,560,9155,363,707,0003,902,787,00029,519,872
3Nov 21, 2024 01:492,063,5689,510,063,3925,413,701,0003,872,356,00029,609,984
4Nov 21, 2024 01:492,065,7709,525,657,8935,263,245,0004,032,720,00029,499,392
5Nov 21, 2024 01:492,088,8809,620,638,2545,425,473,0003,974,486,00029,630,464
6Nov 21, 2024 01:492,117,4049,754,640,4415,494,146,0004,034,170,00029,577,216
7Nov 21, 2024 01:492,141,1609,854,533,6325,538,779,0004,096,441,00029,511,680
8Nov 21, 2024 01:492,159,2169,943,097,5465,539,867,0004,176,607,00029,593,600
9Nov 21, 2024 01:492,226,23610,240,759,7835,672,770,0004,345,292,00029,450,240