part2 ver 0.5.1

This commit is contained in:
ClF3 2024-11-04 21:14:37 +08:00
parent 1de445c64a
commit b071a46b79
1 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,10 @@
#define CACHE_HIT_THRESHOLD 200
#define WAIT_TIME 1000
#define AVAR 1664525
#define AVAR 575479
#define CVAR 10020107
#define AVAR1 199267
#define CVAR1 4900501
int main() {
int index = -1;
int flag = -1;
@ -29,7 +31,7 @@ int main() {
for(int i = 0; i < 10000; i++) {
new_offset = (AVAR * offset + CVAR) % 1024;
if(offset == new_offset||offset-new_offset==1||offset-new_offset==-1) {
offset = (offset + 712) % 1024;
offset = (AVAR1 * offset + CVAR1) % 1024;
}
else {
offset = new_offset;