part2 ver 0.5.1
This commit is contained in:
parent
1de445c64a
commit
b071a46b79
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue