📄 reveal.m
字号:
function rcards = reveal(shval,k,p)% This function reveals the cards whose values are passed% in the vector shval. The hiding operation took place by taking % the card values and raising them to the kth power mod pcln=length(shval);kinv=powermod(k,-1,p-1);revvals=zeros(cln,1);for j=1:cln, revvals(j)=powermod(shval(j),kinv,p); rcards(j,:)=int2text1(revvals(j));end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -