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 listOct 11, 2021 02:00Yuriy LyfenkoYuriy LyfenkoScore: 15,368Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 02:008,196110,206,08636,879,86602,252,800
2Oct 11, 2021 02:008,198109,229,31636,890,39302,248,704
3Oct 11, 2021 02:008,209107,831,28836,942,37002,252,800
4Oct 11, 2021 02:0015,275259,422,34636,933,00031,803,00029,675,520
5Oct 11, 2021 02:0015,316257,591,40138,060,00030,860,00029,675,520
6Oct 11, 2021 02:0015,339259,334,61040,079,00028,946,00029,671,424
7Oct 11, 2021 02:0015,368253,671,66436,554,00032,603,00029,655,040
8Oct 11, 2021 02:0015,385263,840,64337,670,00031,561,00029,675,520
9Oct 11, 2021 02:0015,453261,316,62435,791,00033,746,00029,708,288
10Oct 11, 2021 02:0015,483268,978,08640,919,00028,754,00029,655,040
11Oct 11, 2021 02:0015,544258,573,60436,541,00033,408,00029,544,448
12Oct 11, 2021 02:0015,743266,707,90737,506,00033,339,00029,708,288