2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -0,0 +1 @@
|
|||
Strchr(Vecsmall(apply(k->if(k>96&&k<123,(k-84)%26+97,if(k>64&&k<91,(k-52)%26+65,k)),Vec(Vecsmall(s)))))
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
#include <pari/pari.h>
|
||||
|
||||
#define PARI_SECRET "s=\"Urer V nz\";Strchr(Vecsmall(apply(k->if(k>96&&k<123,(k-84)%26+97,if(k>64&&k<91,(k-52)%26+65,k)),Vec(Vecsmall(s)))))"
|
||||
|
||||
int Query(char *Data, size_t *Length)
|
||||
{
|
||||
int rc = 0;
|
||||
GEN result;
|
||||
|
||||
pari_init(1000000, 2);
|
||||
|
||||
result = geval(strtoGENstr(PARI_SECRET)); /* solve the secret */
|
||||
|
||||
if (result) {
|
||||
strncpy(Data, GSTR(result), *Length); /* return secret */
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
pari_close();
|
||||
|
||||
return rc;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue