Skip to content

Commit

Permalink
Update gen.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoYuKai-SaMuEl committed Sep 26, 2024
1 parent 03ab410 commit ee8c85f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pD/gen/gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ int main(int argc, char* argv[]){
if(subtask==1)c=0;
else if(subtask==2)c=(idx%2?rnd.next(1,100):rnd.next(100000,1000000));
else if(subtask==3||subtask==4)c=1e18;
else c=(idx%4==1?rnd.next(1LL,100LL):idx%4==2?rnd.next(100000LL,1000000LL):idx%4==3?rnd.next(1000000000LL,10000000000LL):rnd.next((long long int)1e12,(long long int)1e13));
else{
if(idx%4==1)c=rnd.next(1,100);
else if(idx%4==2)c=rnd.next(100000LL,1000000LL);
else if(idx%4==3)c=rnd.next(1000000000LL,10000000000LL);
else c=rnd.next((long long int)1e12,(long long int)1e13);
}
cout<<n<<' '<<c<<'\n';
for(int i=0;i<n;i++){
if(subtask==3)cout<<1<<" \n"[i==n-1];
Expand Down

0 comments on commit ee8c85f

Please sign in to comment.