Skip to main content
deleted 2 characters in body
Source Link

PHP, 22 bytes

<?=array_sum(file(t));

This assumes there is a file named "t" with a list of integers.

file() opens a file and returns an array with each line stored asa separate elementselement in the array. array_sum() sums all the elements in an array.

PHP, 22 bytes

<?=array_sum(file(t));

This assumes there is a file named "t" with a list of integers.

file() opens a file and returns an array with each line stored as separate elements in the array. array_sum() sums all the elements in an array.

PHP, 22 bytes

<?=array_sum(file(t));

This assumes there is a file named "t" with a list of integers.

file() opens a file and returns an array with each line stored a separate element in the array. array_sum() sums all the elements in an array.

added 166 characters in body
Source Link

PHP, 22 bytes

<?=array_sum(file(t));

AssumingThis assumes there is a file named "t" with thea list of integers.

file() opens a file and returns an array with each line stored as separate elements in the array. array_sum() sums all the elements in an array.

PHP, 22 bytes

<?=array_sum(file(t));

Assuming a file named "t" with the list of integers

PHP, 22 bytes

<?=array_sum(file(t));

This assumes there is a file named "t" with a list of integers.

file() opens a file and returns an array with each line stored as separate elements in the array. array_sum() sums all the elements in an array.

Source Link

PHP, 22 bytes

<?=array_sum(file(t));

Assuming a file named "t" with the list of integers