From 73e5395856211031cfe864ed6b33355a4c89ff63 Mon Sep 17 00:00:00 2001 From: cielavenir Date: Sat, 3 Oct 2020 15:44:05 +0900 Subject: [PATCH 1/2] add Mystery gp solution --- SOLUTIONS/Mystery.gp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 SOLUTIONS/Mystery.gp diff --git a/SOLUTIONS/Mystery.gp b/SOLUTIONS/Mystery.gp new file mode 100644 index 00000000..4763f2b9 --- /dev/null +++ b/SOLUTIONS/Mystery.gp @@ -0,0 +1,14 @@ +f()={ + t=input(); + for(i=1,t, + n=input(); + fac=factor(n); + factra=fac~; + r=1; + for(j=1,#factra, + r=r*(fac[j,2]+1) + ); + print(r) + ) +} +f() From 1d70eef17940da1782e02b99ceaa733015c66be2 Mon Sep 17 00:00:00 2001 From: cielavenir Date: Sat, 3 Oct 2020 15:49:00 +0900 Subject: [PATCH 2/2] add author line --- SOLUTIONS/Mystery.gp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SOLUTIONS/Mystery.gp b/SOLUTIONS/Mystery.gp index 4763f2b9..b07a70fc 100644 --- a/SOLUTIONS/Mystery.gp +++ b/SOLUTIONS/Mystery.gp @@ -1,3 +1,5 @@ +\\author:cielavenir (https://github.com/cielavenir) + f()={ t=input(); for(i=1,t,