Restructuring
This commit is contained in:
20
solutions/ProjectEuler/011/desc.yml
Normal file
20
solutions/ProjectEuler/011/desc.yml
Normal file
@ -0,0 +1,20 @@
|
||||
title: What is the greatest product of four adjacent numbers on the same straight line in the 20 by 20 grid?
|
||||
url: http://projecteuler.net/problem=11
|
||||
|
||||
desc: |
|
||||
In the 2020 grid below, four numbers along a diagonal line have been marked in red.
|
||||
What is the greatest product of four adjacent numbers in any direction (up, down, left, right, or diagonally) in the 2020 grid?
|
||||
(See file input)
|
||||
|
||||
solution: |
|
||||
Bruteforce (Unless someone found a smarter way)
|
||||
|
||||
solutions:
|
||||
solve.php:
|
||||
desc: Expects the matrix as stdin
|
||||
language: php
|
||||
parameters: < ProjectEuler\011\input
|
||||
solve.rb:
|
||||
desc: Expects the matrix as stdin
|
||||
language: ruby
|
||||
parameters: < ProjectEuler\011\input
|
Reference in New Issue
Block a user