From 28554b7791825f392ce761ca91a0abec7354eb2c Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 17 Apr 2023 10:07:31 -0700 Subject: [PATCH] Add missing alt code to 1990/baruch I did this a while back but somehow forgot to do a git add baruch.alt.c so the alt code was only referenced in the README.md and Makefile. That has now been corrected. --- 1990/baruch/.gitignore | 1 + 1990/baruch/baruch.alt.c | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 1990/baruch/baruch.alt.c diff --git a/1990/baruch/.gitignore b/1990/baruch/.gitignore index 20e5ca7fd..c31461210 100644 --- a/1990/baruch/.gitignore +++ b/1990/baruch/.gitignore @@ -1 +1,2 @@ baruch +baruch.alt diff --git a/1990/baruch/baruch.alt.c b/1990/baruch/baruch.alt.c new file mode 100644 index 000000000..8b7f770e9 --- /dev/null +++ b/1990/baruch/baruch.alt.c @@ -0,0 +1,6 @@ +int v,i,j,k,l,s,a[99]; +int main(void) +{ + for(scanf("%d",&s);*a-s;v=a[j*=v]-a[i],k=i=s*k&&++a[--i]) + ;puts(""); +}