sln_2015_25
Copyright(c) Eric Mertens 2021
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

Synopsis

Documentation

main :: IO () Source #

>>> :main
8997277

code Source #

Arguments

:: Integer

row

-> Integer

column

-> Integer

cell value

Compute the value at a location on Santa's infinite sheet of paper.

cell Source #

Arguments

:: Integer

row

-> Integer

column

-> Integer 

Compute zero-indexed cell of diagonally filled table using zero-indexed row, column.

sum1N Source #

Arguments

:: Integer

upper bound

-> Integer 

Compute sum of non-negative integers from 0 to the given upper bound.