QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#489352#8726. Magic ShowWhisperingWillow0 0ms0kbC++14531b2024-07-24 19:42:512024-07-24 19:42:52

Judging History

你现在查看的是最新测评结果

  • [2024-07-24 19:42:52]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2024-07-24 19:42:51]
  • 提交

Alice

#include<bits/stdc++.h>
#include"Alice.h"
using namespace std;
std::vector<std::pair<int,int> > Alice(){
	long long x=setN(500);
	std::vector<std::pair<int,int> > v;
	for(int i=2;i<=500;++i){
		v.push_back({i,x%(i-1)+1}); 
	}
}

Bob

#include<bits/stdc++.h>
#include"Bob.h"
using namespace std;
long long Bob(std::vector<std::pair<int,int> > V){
	__int128 ans=0,res=1;
	for(auto i:V){
		//(i , x % (i - 1) + 1_ 
		int x=i.first - 1,y=i.second - 1;
		while(ans%x!=y) ans+=res;
		res = lcm(res,x);
	}
	return ans;
}

詳細信息

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 0
Runtime Error

input:

1
4005

output:


Subtask #2:

score: 0
Runtime Error

Test #13:

score: 0
Runtime Error

input:

1
17476204

output:


Subtask #3:

score: 0
Runtime Error

Test #25:

score: 0
Runtime Error

input:

1
355365355024496523

output: