编程语言
首页 > 编程语言> > SPJ转C++

SPJ转C++

作者:互联网

希望有大佬把这段奇怪的SPJ转成C++,谢谢!

%:include"testlib.h"
unsigned y=19260817U,Y=3454609757U,z=897344247U,Z=4275706529U,b,t=100;
void f()<%b=(y<<6^y)>>13,y=(y&4294967294U)<<18^b,b=(Y<<2^Y)>>27,Y=(Y&4294967288U)<<2^b;%>
void F()<%b=(z<<13^z)>>21,z=(z&4294967280U)<<7^b,b=(Z<<3^Z)>>12,Z=(Z&4294967168U)<<13^b;%>
int R(int a)<%for(int i=1;i<=t;i++)f(),F(),a^=y^Y^z^Z;return a<0?-a:a;%>
int main(int m,char**M)<%registerTestlibCmd(m,M),t=R(ouf.readInt())%101,t==100?quitf(_ok,""):quitp(t/100.0,"");%>

 

标签:testlib,4294967288U,int,void,C++,SPJ
来源: https://www.cnblogs.com/fufufu61/p/14615040.html