Skip to content

Commit

Permalink
Update gen.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Same0620 authored Sep 27, 2024
1 parent 639a991 commit da2c192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pA/gen/gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main(int argc, char* argv[]) {
if(subtask==1||subtask==5){
for(int i=0;i<q;i++){
int ch;
if(it!=n-1) ch = rnd.next(1, 3);
if(it!=n-2) ch = rnd.next(1, 3);
else {
ch = rnd.next(1, 2);
if(ch==2)ch=3;
Expand Down Expand Up @@ -95,7 +95,7 @@ int main(int argc, char* argv[]) {
for(int i=0;i<q;i++){
int ch;
ch = rnd.next(1, 2);
if(it==n-1)ch=1;
if(it==n-2)ch=1;
if(ch==1){
if(i%3==0){
l = rnd.next(1, n);
Expand All @@ -120,7 +120,7 @@ int main(int argc, char* argv[]) {
}else if(subtask==6){
for(int i=0;i<q;i++){
int ch;
if(it!=n-1) ch = rnd.next(1, 3);
if(it!=n-2) ch = rnd.next(1, 3);
else {
ch = rnd.next(1, 2);
if(ch==2)ch=3;
Expand Down

0 comments on commit da2c192

Please sign in to comment.