QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#863015#9239. HieroglyphsKevin53073 49ms28672kbC++235.2kb2025-01-19 11:43:282025-01-19 11:43:36

Judging History

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

  • [2025-01-19 11:43:36]
  • 评测
  • 测评结果:3
  • 用时:49ms
  • 内存:28672kb
  • [2025-01-19 11:43:28]
  • 提交

answer

//Author: Kevin
#include<bits/stdc++.h>
//#pragma GCC optimize("O2")
using namespace std;
#define ll long long
#define ull unsigned ll
#define pb emplace_back
#define mp make_pair
#define ALL(x) (x).begin(),(x).end()
#define rALL(x) (x).rbegin(),(x).rend()
#define srt(x) sort(ALL(x))
#define rev(x) reverse(ALL(x))
#define rsrt(x) sort(rALL(x))
#define sz(x) (int)(x.size())
#define inf 0x3f3f3f3f
#define pii pair<int,int>
#define lb(v,x) (int)(lower_bound(ALL(v),x)-v.begin())
#define ub(v,x) (int)(upper_bound(ALL(v),x)-v.begin())
#define uni(v) v.resize(unique(ALL(v))-v.begin())
#define longer __int128_t
void die(string S){puts(S.c_str());exit(0);}
vector<int> ucs(vector<int> A,vector<int> B)
{
	int la=sz(A);
	int lb=sz(B);
	const int m=2e5+10;
	vector<int> ca(m),cb(m);
	for(auto x:A) ca[x]++;
	for(auto x:B) cb[x]++;
	vector<int> major(m);
	for(int i=0;i<m;i++)
		major[i]=ca[i]>=cb[i];
	vector<int> sa,sb;
	for(int i=0;i<la;i++)
		if(!major[A[i]])
			sa.pb(i);
	for(int i=0;i<lb;i++)
		if(major[B[i]])
			sb.pb(i);
	int p1=0,p2=0;
	vector<int> U;
	vector<vector<int>> posa(m),posb(m);
	for(int i=0;i<la;i++)
		posa[A[i]].pb(i);
	for(int i=0;i<lb;i++)
		posb[B[i]].pb(i);
	int cura=0,curb=0;
	while(p1<sz(sa)&&p2<sz(sb))
	{
		int u=sa[p1];
		int v=sb[p2];
		int q1=lb(posa[B[v]],cura);
		int q2=lb(posb[A[u]],curb);
		if(q1==sz(posa[B[v]])||q2==sz(posb[A[u]])) return {-1};
		int u2=posa[B[v]][q1];
		int v2=posb[A[u]][q2];
		if(u2>u&&v2>v) return {-1};
		if(u2>u)
		{
			U.pb(A[u]);
			p1++;
			cura=u+1;
			curb=posb[A[u]][q2]+1;
		}
		else if(v2>v)
		{
			U.pb(B[v]);
			p2++;
			curb=v+1;
			cura=posa[B[v]][q1]+1;
		}
		else
		{
			int qa=lb(posa[B[v]],u);
			int cnta=sz(posa[B[v]])-qa;
			int qb=lb(posb[B[v]],v);
			int cntb=sz(posb[B[v]])-qb;
			if(cnta>=cntb)
			{
				U.pb(A[u]);
				p1++;
				cura=u+1;
				curb=posb[A[u]][q2]+1;
			}
			else
			{
				U.pb(B[v]);
				p2++;
				curb=v+1;
				cura=posa[B[v]][q1]+1;
			}
		}
	}
	while(p1<sz(sa)) U.pb(A[sa[p1++]]);
	while(p2<sz(sb)) U.pb(B[sb[p2++]]);
	auto match=[&](const vector<int> &v1,const vector<int> &v2)
	{
		int p=0;
		for(auto x:v2)
		{
			while(p<sz(v1)&&v1[p]!=x) p++;
			if(p==sz(v1)) return false;
			p++;
		}
		return true;
	};
	if(!match(A,U)||!match(B,U)) return {-1};
	vector<int> correspond;
	vector<int> cca(m),ccb(m);
	vector<int> f(sz(U),inf),g(sz(U),inf);
	for(int i=0;i<sz(U);i++)
	{
		int x=U[i];
		if(major[x])
		{
			if(!ccb[x])
			{
				f[i]=posa[x][0]+1;
				g[i]=posb[x][0]+1;
			}
			correspond.pb(posb[x][ccb[x]++]);
		}
		else
		{
			if(!cca[x])
			{
				f[i]=posa[x][0]+1;
				g[i]=posb[x][0]+1;
			}
			correspond.pb(posa[x][cca[x]++]);
		}
	}
	vector<int> st[2];
	vector<int> app(m,-1);
	auto getval=[&](int pos,int x)
	{
		assert(lb(st[x],pos)!=sz(st[x]));
		int ap=st[x][lb(st[x],pos)];
		return mp(f[ap],g[ap]);
	};
	for(int i=0;i<sz(U);i++)
	{
		int lst=app[U[i]];
		app[U[i]]=i;
		if(i&&sz(st[0])&&max(0,lst)<=st[0].back())
		{
			auto state=getval(max(0,lst),0);
			int fv=state.first;
			int gv=state.second;
			if(major[U[i]])
			{
				if(~lst&&gv<=correspond[lst]&&lb(posa[U[i]],fv)!=sz(posa[U[i]])) return {-1};
				if(gv<=correspond[i]&&lb(posa[U[i]],fv)!=sz(posa[U[i]]))
				{
					f[i]=min(f[i],posa[U[i]][lb(posa[U[i]],fv)]+1);
					g[i]=correspond[i]+1;
				}
			}
			else
			{
				if(~lst&&fv<=correspond[lst]&&lb(posb[U[i]],gv)!=sz(posb[U[i]])) return {-1};
				if(fv<=correspond[i]&&lb(posb[U[i]],gv)!=sz(posb[U[i]]))
				{
					f[i]=correspond[i]+1;
					g[i]=min(g[i],posb[U[i]][lb(posb[U[i]],gv)]+1);
				}
			}
		}
		if(i&&sz(st[1])&&max(0,lst)<=st[1].back())
		{
			auto state=getval(max(0,lst),1);
			int fv=state.first;
			int gv=state.second;
			if(major[U[i]])
			{
				if(~lst&&gv<=correspond[lst]&&lb(posa[U[i]],fv)!=sz(posa[U[i]])) return {-1};
				if(gv<=correspond[i]&&lb(posa[U[i]],fv)!=sz(posa[U[i]]))
				{
					f[i]=min(f[i],posa[U[i]][lb(posa[U[i]],fv)]+1);
					g[i]=correspond[i]+1;
				}
			}
			else
			{
				if(~lst&&fv<=correspond[lst]&&lb(posb[U[i]],gv)!=sz(posb[U[i]])) return {-1};
				if(fv<=correspond[i]&&lb(posb[U[i]],gv)!=sz(posb[U[i]]))
				{
					f[i]=correspond[i]+1;
					g[i]=min(g[i],posb[U[i]][lb(posb[U[i]],gv)]+1);
				}
			}
		}
		while(sz(st[major[U[i]]])&&(f[st[major[U[i]]].back()]>f[i]||g[st[major[U[i]]].back()]>g[i]))
			st[major[U[i]]].pop_back();
		st[major[U[i]]].pb(i);
	}
	vector<int> uc(m);
	for(auto x:U) uc[x]++;
	for(int i=0;i<sz(U);i++)
	{
		uc[U[i]]--;
		if(!uc[U[i]])
		{
			if(sz(st[0])&&i<=st[0].back())
			{
				auto state=getval(i,0);
				int fv=state.first;
				int gv=state.second;
				if(fv<=posa[U[i]].back()&&gv<=posb[U[i]].back()) return {-1};
			}
			if(sz(st[1])&&i<=st[1].back())
			{
				auto state=getval(i,1);
				int fv=state.first;
				int gv=state.second;
				if(fv<=posa[U[i]].back()&&gv<=posb[U[i]].back()) return {-1};
			}
		}
	}
	return U;
}
#ifndef ONLINE_JUDGE
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int n,m;
	cin>>n>>m;
	vector<int> A(n),B(m);
	for(auto &x:A) cin>>x;
	for(auto &x:B) cin>>x;
	A=ucs(A,B);
	for(auto x:A) cout<<x<<" ";
	return 0;
}
#endif

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 3
Accepted

Test #1:

score: 3
Accepted
time: 1ms
memory: 18384kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
10 10
7 1 9 2 3 5 0 6 8 4
7 1 9 2 3 5 0 6 8 4

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
10
7 1 9 2 3 5 0 6 8 4

result:

ok 

Test #2:

score: 3
Accepted
time: 1ms
memory: 15176kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
10 10
7 9 4 5 6 8 2 1 3 0
7 9 4 5 8 6 2 1 3 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #3:

score: 3
Accepted
time: 1ms
memory: 18400kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
1000 1000
227 14 144 355 329 614 282 987 90 67 421 904 584 672 129 286 187 498 450 29 342 688 521 133 585 769 794 138 731 946 28 996 402 935 96 855 2 186 361 1 451 914 318 720 296 389 356 364 400 971 387 979 520 885 604 62 814 474 479 952 394 640 959 246 509 171 486 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1000
227 14 144 355 329 614 282 987 90 67 421 904 584 672 129 286 187 498 450 29 342 688 521 133 585 769 794 138 731 946 28 996 402 935 96 855 2 186 361 1 451 914 318 720 296 389 356 364 400 971 387 979 520 885 604 62 814 474 479 952 394 640 959 246 509 171 486 35...

result:

ok 

Test #4:

score: 3
Accepted
time: 3ms
memory: 15328kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
997 997
615 691 867 398 544 236 744 802 466 701 700 106 636 993 668 105 409 810 957 249 619 293 729 339 189 537 70 237 487 360 276 693 181 954 85 310 669 52 86 12 209 787 294 188 64 561 828 44 564 480 895 283 289 924 192 783 890 948 674 279 114 229 822 771 458 179 65...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #5:

score: 3
Accepted
time: 43ms
memory: 28672kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
19751 36170 33104 26686 54203 5214 37609 58763 10536 82655 80942 70794 54794 16739 55137 38172 11159 41408 34850 54300 58781 6684 19791 28867 83340 19360 7277 54060 59942 87198 45397 49198 66950 26865 7468 7059 58566 43804 99565 76536 48614 34101 26106 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
100000
19751 36170 33104 26686 54203 5214 37609 58763 10536 82655 80942 70794 54794 16739 55137 38172 11159 41408 34850 54300 58781 6684 19791 28867 83340 19360 7277 54060 59942 87198 45397 49198 66950 26865 7468 7059 58566 43804 99565 76536 48614 34101 26106 5596...

result:

ok 

Test #6:

score: 3
Accepted
time: 27ms
memory: 24172kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
57387 11861 84433 84680 51764 17643 86122 83141 74972 47794 40972 60391 93655 62206 23852 51121 39250 5924 83139 29296 56131 49532 51226 82006 3512 64857 97761 67854 81216 44976 43459 57540 14182 6532 49925 71980 75037 14724 22961 5863 51568 85048 44306...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #7:

score: 3
Accepted
time: 28ms
memory: 24128kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
84974 12498 84270 93621 94069 64811 16796 8508 5403 97838 69731 94154 34731 38790 45254 19912 63443 17097 25188 8738 22665 3307 92076 63795 24089 54926 82925 31639 81818 84608 65732 50776 53506 41939 34765 62498 39249 80937 95327 706 45760 39603 10343 6...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #8:

score: 15
Accepted
time: 48ms
memory: 25004kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89984 90016
167910 187180 47437 150113 199404 61979 49501 155514 167910 175137 104441 149717 155514 13573 170025 181983 117868 13573 149717 166954 145922 29787 93788 58581 158693 51768 120499 17700 17700 4746 119328 33450 138501 137246 33450 135751 84363 168724 15701...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60000
187180 47437 150113 199404 61979 49501 167910 175137 104441 155514 170025 181983 117868 13573 149717 166954 145922 29787 93788 58581 158693 51768 120499 17700 4746 119328 138501 137246 33450 135751 84363 168724 157010 108760 44137 113102 139611 199377 86291 ...

result:

ok 

Test #9:

score: 15
Accepted
time: 48ms
memory: 25016kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90003 90000
14155 14155 151711 151711 31573 66800 139383 1925 46366 116207 18428 18428 66618 83155 133084 9526 176340 87155 193385 52734 133084 1925 79878 137917 176340 32150 15872 66618 116207 194766 40942 31265 147928 124727 97615 58260 161323 8229 74777 146601 959...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
14155 151711 31573 66800 139383 46366 18428 83155 9526 87155 193385 52734 133084 1925 79878 137917 176340 32150 15872 66618 116207 194766 40942 31265 147928 124727 97615 58260 161323 8229 74777 146601 37955 95987 118028 29763 15233 101780 54731 36231 65482 3...

result:

ok 

Test #10:

score: 15
Accepted
time: 38ms
memory: 25016kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89985 90021
192793 185974 48491 162906 75646 99166 183316 75646 52957 33987 83321 64287 83321 123979 130761 130761 154020 134587 154020 186921 178874 71496 184891 82981 123873 186777 127271 139973 67220 127271 140236 191126 67220 36003 36003 23064 43454 116351 168977...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #11:

score: 15
Accepted
time: 41ms
memory: 25012kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90014 89995
17256 105238 17256 105238 105405 10314 111640 70659 55569 98087 65019 14479 70659 32231 181153 193842 66318 3621 66318 198871 55518 42843 186825 134959 134959 153709 42843 151583 144591 111568 134786 192560 80263 120343 185374 185374 169728 9032 97727 828...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #12:

score: 15
Accepted
time: 49ms
memory: 25004kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90008 90004
180511 161015 16262 16262 52999 127190 178460 35560 178460 184371 2815 161015 184371 2815 206 127190 87119 33079 23188 23188 186591 160908 53562 144431 177868 127055 197253 117791 177868 188280 194433 194433 144825 44149 70831 56651 56651 96053 80656 7502...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60004
180511 16262 52999 35560 178460 161015 184371 2815 206 127190 87119 33079 23188 186591 160908 53562 144431 127055 197253 117791 177868 188280 194433 144825 44149 70831 56651 96053 80656 75028 124252 134693 180419 43034 28130 119187 21358 133748 21079 143816 ...

result:

ok 

Test #13:

score: 15
Accepted
time: 45ms
memory: 25016kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90042 89979
29707 12326 194838 29707 99720 55349 103409 69802 30015 69802 12326 137622 175331 97157 62498 39504 155925 44517 112910 44517 82971 149911 62498 45144 186022 58102 148090 186022 75958 75958 183679 164385 109694 189132 148090 176295 112788 42671 178545 170...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #14:

score: 0
Wrong Answer
time: 46ms
memory: 24888kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89340 89340
183027 184217 184217 19614 137650 162293 154620 154620 95720 19614 62759 95720 106871 18630 106871 64176 46630 136366 85308 61147 85308 61088 61088 61147 72757 72757 146185 128098 164684 195877 194714 174677 174677 132819 99452 120455 158757 88719 12592 7...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
59560
183027 184217 137650 162293 154620 19614 62759 95720 18630 106871 64176 46630 136366 85308 61088 61147 72757 146185 128098 164684 195877 194714 174677 132819 99452 120455 158757 88719 12592 75594 59164 154762 7161 181878 161800 45699 125642 199182 20427 1966...

result:

wrong answer 3rd lines differ - on the 1st token, expected: '1', found: '59560'

Subtask #3:

score: 0
Wrong Answer

Test #71:

score: 0
Wrong Answer
time: 35ms
memory: 22240kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
0 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 1 1 1 1 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 1 1 1 1 1 0 1 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 1 1 0 1 1 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 1 1 1 0 1 0 0 0 1 0 1 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 1 0 1 1 1 0 1 0...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

wrong answer 3rd lines differ - on the 1st token, expected: '85671', found: '1'

Subtask #4:

score: 0
Wrong Answer

Test #97:

score: 16
Accepted
time: 6ms
memory: 19600kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
20000 30000
110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
20000
110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955...

result:

ok 

Test #98:

score: 16
Accepted
time: 32ms
memory: 22992kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
99999 88888
22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 224...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
88886
22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 ...

result:

ok 

Test #99:

score: 16
Accepted
time: 27ms
memory: 23420kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
166304 166304 166304 166304 166304 166304 166304 166304 102708 11497 11497 11497 11497 11497 11497 11497 11497 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 125776 125776 125776 125776 125776 125776 125776 125...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
85709
166304 166304 166304 166304 166304 166304 166304 102708 11497 11497 11497 11497 11497 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 12...

result:

ok 

Test #100:

score: 16
Accepted
time: 26ms
memory: 23656kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
95801
117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117...

result:

ok 

Test #101:

score: 16
Accepted
time: 35ms
memory: 23572kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
98803
127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501...

result:

ok 

Test #102:

score: 16
Accepted
time: 38ms
memory: 23620kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
99078
116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473...

result:

ok 

Test #103:

score: 0
Wrong Answer
time: 27ms
memory: 23416kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90001 89999
171539 66534 9757 176662 84211 83487 129394 86197 172362 142984 93418 146577 96159 191701 83516 196081 37110 105351 165140 54539 124569 187177 24718 194979 119131 15727 40820 31718 13095 147840 76889 199389 75862 118045 115442 10325 157261 11275 83362 174...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

wrong answer 3rd lines differ - on the 1st token, expected: '69029', found: '1'

Subtask #5:

score: 0
Wrong Answer

Test #132:

score: 0
Wrong Answer
time: 1ms
memory: 17680kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2800 2999
47 51 42 122 38 125 170 11 119 48 289 297 27 150 207 271 11 15 67 287 149 220 76 274 128 151 60 117 39 123 254 75 170 198 72 179 274 203 13 88 139 153 46 288 13 282 16 219 284 91 274 63 190 157 72 286 238 1 219 82 82 31 285 128 198 172 161 271 36 111 160 26...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

wrong answer 3rd lines differ - on the 1st token, expected: '2800', found: '1'

Subtask #6:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%