Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoYuKai-SaMuEl committed Sep 26, 2024
1 parent 01e4068 commit 226dd40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions pF/gen/gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ using namespace std;
int main(int argc, char* argv[]){
registerGen(argc, argv, 1);
int subtask=atoi(argv[1]);
if(subtask==1)cout<<rnd.next(1,10000000)<<' '<<1;
else if(subtask==2)cout<<rnd.next(1,10000000)<<' '<<rnd.next(800000,1000000);
else if(subtask==3)cout<<rnd.next(1LL,1000000000039LL)<<' '<<1;
else if(subtask==4)cout<<rnd.next(1LL,1000000000039LL)<<' '<<rnd.next(800000,1000000);
else cout<<rnd.next(1LL,1000000000039LL)<<' '<<rnd.next("[1-9][0-9]{9999999}");
cout<<'\n';
long long int n;
if(subtask==1||subtask==2){
int temp=rnd.next(1,10000000);
while(temp--)n=n*2%1000000000039LL;
}else n=rnd.next(1LL,1000000000038LL);
if(subtask==1||subtask==3)cout<<n<<' '<<1<<'\n';
else if(subtask==2||subtask==4)cout<<n<<' '<<rnd.next(800000,1000000)<<'\n';
else cout<<n<<' '<<rnd.next("[1-9][0-9]{9999999}")<<'\n';
}
4 changes: 2 additions & 2 deletions pF/subtasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"1": {
"index": 1,
"score": 15,
"text": "$n\\le 10^7,m=1$",
"text": "保證存在 $k\\le 10^7$ 滿足 $2^k$ 除以 $10^{12}+39$ 的餘數為 $n$ 且 $m=1$",
"validators": []
},
"2": {
"index": 2,
"score": 20,
"text": "$n\\le 10^7,m\\le 10^6$",
"text": "保證存在 $k\\le 10^7$ 滿足 $2^k$ 除以 $10^{12}+39$ 的餘數為 $n$ 且 $m\\le 10^6$",
"validators": []
},
"3": {
Expand Down

0 comments on commit 226dd40

Please sign in to comment.