diff options
author | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-02-11 11:37:48 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-02-11 11:37:48 +0700 |
commit | df9a0d140a7b7edef66f95aa13b5bb4488147f68 (patch) | |
tree | de213e8e6abf244426fcec5974c1cc247897f869 /others/volume1/002.pas | |
parent | 092019121ad5ef6f82cd8fe7bf6ee143fce9648d (diff) | |
download | cp-df9a0d140a7b7edef66f95aa13b5bb4488147f68.tar.gz |
Fast and furiously add others/volume1
Diffstat (limited to 'others/volume1/002.pas')
-rw-r--r-- | others/volume1/002.pas | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/others/volume1/002.pas b/others/volume1/002.pas new file mode 100644 index 0000000..7732052 --- /dev/null +++ b/others/volume1/002.pas @@ -0,0 +1,21 @@ +uses fibonacci; + +var + m: int64; + i: byte; + +begin + readln(m); + if m <= 2 then + begin + writeln('1 1'); + exit + end; + + for i := 3 to 88 do + if fibonacci93[i] > m then + begin + writeln(i - 1, ' ', fibonacci93[i - 1]); + exit + end +end. |