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 13, 2026 23:41Josu San MartinJosu San MartinScore: 4,644Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2026 23:464,57842,539,47619,573,0001,030,0002,441,216
2Apr 13, 2026 23:414,59446,062,24119,641,0001,033,0002,445,312
3Apr 13, 2026 23:414,59546,390,49319,645,0001,033,0002,445,312
4Apr 13, 2026 23:414,59744,598,54319,654,0001,034,0002,445,312
5Apr 13, 2026 23:414,59849,256,06419,659,0001,034,0002,445,312
6Apr 13, 2026 23:404,60249,296,68619,673,0001,035,0002,281,472
7Apr 13, 2026 23:464,60249,511,10619,673,0001,035,0002,449,408
8Apr 13, 2026 23:464,60257,489,23019,672,0001,035,0002,445,312
9Apr 13, 2026 23:464,60952,352,39619,705,0001,037,0002,281,472
10Apr 13, 2026 23:464,60944,317,51819,704,0001,037,0002,453,504
11Apr 13, 2026 23:414,60948,263,91619,705,0001,037,0002,531,328
12Apr 13, 2026 23:404,64145,800,78118,895,0001,988,0002,445,312
13Apr 13, 2026 23:464,64244,555,62918,899,0001,989,0002,441,216
14Apr 13, 2026 23:404,64245,259,44218,899,0001,989,0002,437,120
15Apr 13, 2026 23:464,64342,942,04318,905,0001,990,0002,281,472
16Apr 13, 2026 23:414,64437,972,72218,909,0001,990,0002,281,472
17Apr 13, 2026 23:404,64442,752,36319,902,000995,0002,445,312
18Apr 13, 2026 23:464,64544,747,93919,909,000995,0002,281,472
19Apr 13, 2026 23:414,64551,065,09819,906,000995,0002,281,472
20Apr 13, 2026 23:414,64552,055,16118,911,0001,990,0002,433,024
21Apr 13, 2026 23:414,64636,958,15318,914,0001,991,0002,281,472
22Apr 13, 2026 23:404,64648,091,28718,916,0001,991,0002,281,472
23Apr 13, 2026 23:404,65042,949,18918,932,0001,992,0002,441,216
24Apr 13, 2026 23:414,65647,239,94818,956,0001,995,0002,281,472
25Apr 13, 2026 23:404,66949,406,44119,010,0002,001,0002,445,312
26Apr 13, 2026 23:414,67046,025,38020,016,0001,000,0002,494,464
27Apr 13, 2026 23:464,68044,997,82219,055,0002,005,0002,281,472
28Apr 13, 2026 23:415,56750,871,87023,048,0002,004,0002,437,120
29Apr 13, 2026 23:405,60447,388,63223,202,0002,017,0002,281,472
30Apr 13, 2026 23:405,60748,896,41023,215,0002,018,0002,449,408