QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#349952#8221. 多方计算zhouhuanyi56 123ms57652kbC++14656b2024-03-10 10:00:572024-03-10 10:00:58

Judging History

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

  • [2024-03-10 10:00:58]
  • 评测
  • 测评结果:56
  • 用时:123ms
  • 内存:57652kb
  • [2024-03-10 10:00:57]
  • 提交

answer

#include"mpc.h"
#include<iostream>
#include<cstdio>
#define N 2000
using namespace std;
int sn,sm,lg[N+1];
int precalc(int n,int m)
{
	lg[1]=0;
	for (int i=2;i<=N;++i) lg[i]=lg[(i+1)>>1]+1;
	sn=n,sm=m;
    return n+m+lg[lg[n]];
}
bool transmit(player &player,int round,int position)
{
	int d=round-1-position;
	if (d<0) d+=sm+lg[sn]+1;
	if (d<0) return 0;
    if (player.last_message)
	{
		player.memory[d]++;
		for (int i=d;i<=4095;++i)
		{
			if (player.memory[i]>=2) player.memory[i]-=2,player.memory[i+1]++;
			else break;
		}
	}
	if (position==sn) return 0;
	int ds=player.memory[d];
	player.memory[d]=0;
	return ds;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 10
Accepted
time: 0ms
memory: 5900kb

input:

5 5 3185997250635081508 10243950506680270049

output:

4123764187658

result:

ok Perfect. 10

Test #2:

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

input:

5 5 3552483843587513799 14478819593833617714

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #2:

score: 8
Acceptable Answer

Test #37:

score: 8
Acceptable Answer
time: 13ms
memory: 31604kb

input:

1000 1 17833636513278974999 18032835279213373306

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #38:

score: 8
Acceptable Answer
time: 13ms
memory: 31756kb

input:

1000 1 14730911653810224758 12266600726496100996

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #39:

score: 8
Acceptable Answer
time: 17ms
memory: 31364kb

input:

1000 1 8799733959292548924 5387063902427699037

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #40:

score: 8
Acceptable Answer
time: 12ms
memory: 31928kb

input:

1000 1 9630334707439747607 4291049102998855878

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #41:

score: 8
Acceptable Answer
time: 8ms
memory: 31260kb

input:

1000 1 14659313773847015835 5872125537220100813

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #42:

score: 8
Acceptable Answer
time: 15ms
memory: 32652kb

input:

1000 1 8843810642295111463 9289549733703682079

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #43:

score: 8
Acceptable Answer
time: 8ms
memory: 32620kb

input:

1000 1 12506531245496737504 16568422609970603828

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #44:

score: 8
Acceptable Answer
time: 17ms
memory: 30740kb

input:

1000 1 1687678405863133532 5008244365647721871

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #45:

score: 8
Acceptable Answer
time: 16ms
memory: 30124kb

input:

1000 1 521330378415348792 8325284866479671525

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #46:

score: 8
Acceptable Answer
time: 8ms
memory: 31368kb

input:

1000 1 6611871207626880018 9817110237545272117

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #47:

score: 8
Acceptable Answer
time: 16ms
memory: 31904kb

input:

1000 1 15306541734406271267 14703264691591359191

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #48:

score: 8
Acceptable Answer
time: 7ms
memory: 32060kb

input:

1000 1 3566881709297895710 7594566018112860837

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #49:

score: 8
Acceptable Answer
time: 15ms
memory: 32604kb

input:

1000 1 4397454027521899216 7721560744364225236

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #50:

score: 8
Acceptable Answer
time: 12ms
memory: 31480kb

input:

1000 1 5142075432412851988 16742257564666708908

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #51:

score: 8
Acceptable Answer
time: 10ms
memory: 31272kb

input:

1000 1 12044326647208924489 2167359237561753365

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #52:

score: 8
Acceptable Answer
time: 13ms
memory: 31352kb

input:

1000 1 16253907834346424870 11108645373354737991

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #53:

score: 8
Acceptable Answer
time: 16ms
memory: 32108kb

input:

1000 1 16626499607125776891 8356934117282130057

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #54:

score: 8
Acceptable Answer
time: 11ms
memory: 30780kb

input:

1000 1 3282168031615086167 3657599301669157549

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #55:

score: 8
Acceptable Answer
time: 17ms
memory: 32576kb

input:

1000 1 14215560210789593083 15626251936339749845

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #56:

score: 8
Acceptable Answer
time: 16ms
memory: 31092kb

input:

1000 1 2190592376641362424 13403200408316995773

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #57:

score: 8
Acceptable Answer
time: 16ms
memory: 31704kb

input:

1000 1 11465558394225010724 2496884116655812179

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #58:

score: 8
Acceptable Answer
time: 11ms
memory: 30888kb

input:

1000 1 18276809344802529187 9561628486185706823

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #59:

score: 8
Acceptable Answer
time: 8ms
memory: 31048kb

input:

1000 1 7860122780923461882 10042766163912380121

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #60:

score: 8
Acceptable Answer
time: 10ms
memory: 31956kb

input:

1000 1 12388686810101047811 3399743554629441239

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #61:

score: 8
Acceptable Answer
time: 10ms
memory: 31232kb

input:

1000 1 14427576709382087754 13171985723510234618

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #62:

score: 8
Acceptable Answer
time: 13ms
memory: 30948kb

input:

1000 1 7668903319567597796 8075077151477112929

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #63:

score: 8
Acceptable Answer
time: 14ms
memory: 32532kb

input:

1000 1 14122766694312513270 6279188681168230824

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #64:

score: 8
Acceptable Answer
time: 12ms
memory: 31920kb

input:

1000 1 5699987051542490697 8384784519684171122

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #65:

score: 8
Acceptable Answer
time: 16ms
memory: 30120kb

input:

1000 1 11830949407183123854 9439666782273874030

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #66:

score: 8
Acceptable Answer
time: 12ms
memory: 32352kb

input:

1000 1 9554889270917528521 11260732977199304707

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #67:

score: 8
Acceptable Answer
time: 16ms
memory: 31892kb

input:

1000 1 17459479638232299425 11063210786482562440

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #68:

score: 8
Acceptable Answer
time: 12ms
memory: 32560kb

input:

1000 1 15086329177686012536 8242831546145677467

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #69:

score: 8
Acceptable Answer
time: 12ms
memory: 32048kb

input:

1000 1 15745267644798804685 16686857765674424216

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #70:

score: 8
Acceptable Answer
time: 15ms
memory: 30048kb

input:

1000 1 9660862519797395098 1310528139508248324

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #71:

score: 8
Acceptable Answer
time: 15ms
memory: 31084kb

input:

1000 1 3951648867737539370 17836842425696853386

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #72:

score: 8
Acceptable Answer
time: 17ms
memory: 31360kb

input:

1000 1 3683735297104135564 13137254066150313412

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Subtask #3:

score: 8
Acceptable Answer

Test #73:

score: 8
Acceptable Answer
time: 12ms
memory: 31744kb

input:

1000 10 7581650225429700886 16046788410942473709

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #74:

score: 8
Acceptable Answer
time: 11ms
memory: 31748kb

input:

1000 10 14537469660092572204 15487160242871277135

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #75:

score: 8
Acceptable Answer
time: 13ms
memory: 32632kb

input:

1000 10 4971718706043853562 18391385355203803679

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #76:

score: 8
Acceptable Answer
time: 16ms
memory: 31280kb

input:

1000 10 6220037268301995888 16278635752092714254

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #77:

score: 8
Acceptable Answer
time: 15ms
memory: 31912kb

input:

1000 10 13003869813029460901 78867517061296991

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #78:

score: 8
Acceptable Answer
time: 15ms
memory: 31544kb

input:

1000 10 4278268311277744902 4384469125163838694

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #79:

score: 8
Acceptable Answer
time: 11ms
memory: 30888kb

input:

1000 10 12438753592825055167 17236482075173745548

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #80:

score: 8
Acceptable Answer
time: 15ms
memory: 31776kb

input:

1000 10 17346747783364362211 7528000636140799043

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #81:

score: 8
Acceptable Answer
time: 7ms
memory: 30776kb

input:

1000 10 4438938768454127105 11400849707395197330

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #82:

score: 8
Acceptable Answer
time: 12ms
memory: 31708kb

input:

1000 10 12809855989060518335 16096479664532822701

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #83:

score: 8
Acceptable Answer
time: 16ms
memory: 31724kb

input:

1000 10 1866324730478452587 12184760107709123044

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #84:

score: 8
Acceptable Answer
time: 17ms
memory: 31576kb

input:

1000 10 3385557446066551060 13320063460899920438

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #85:

score: 8
Acceptable Answer
time: 8ms
memory: 30808kb

input:

1000 10 2771533678859996832 4383486732818647108

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #86:

score: 8
Acceptable Answer
time: 12ms
memory: 32088kb

input:

1000 10 12943117603886392628 4963239483087442233

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #87:

score: 8
Acceptable Answer
time: 13ms
memory: 31244kb

input:

1000 10 2313703064704983170 6736870706983331092

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #88:

score: 8
Acceptable Answer
time: 13ms
memory: 31200kb

input:

1000 10 15804969878376580290 3548856895358739838

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #89:

score: 8
Acceptable Answer
time: 13ms
memory: 31072kb

input:

1000 10 9866080263333804889 8678830744093953826

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #90:

score: 8
Acceptable Answer
time: 16ms
memory: 31892kb

input:

1000 10 6751820871136111185 8848658341608259639

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #91:

score: 8
Acceptable Answer
time: 13ms
memory: 31864kb

input:

1000 10 11486054074739288989 2900919302828998560

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #92:

score: 8
Acceptable Answer
time: 16ms
memory: 31968kb

input:

1000 10 13832119382569826953 13634361971260976354

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #93:

score: 8
Acceptable Answer
time: 16ms
memory: 31884kb

input:

1000 10 4453410960153043101 13357409826523686900

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #94:

score: 8
Acceptable Answer
time: 12ms
memory: 31952kb

input:

1000 10 6074878447994378931 9512185237100875326

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #95:

score: 8
Acceptable Answer
time: 11ms
memory: 32448kb

input:

1000 10 12898383854853911815 17140959228886157821

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #96:

score: 8
Acceptable Answer
time: 17ms
memory: 32408kb

input:

1000 10 17877803113382829335 6155994847379122253

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #97:

score: 8
Acceptable Answer
time: 12ms
memory: 30920kb

input:

1000 10 5411127225557059691 8968502810098781048

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #98:

score: 8
Acceptable Answer
time: 15ms
memory: 31696kb

input:

1000 10 12839765246681509765 16133659220449519045

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #99:

score: 8
Acceptable Answer
time: 12ms
memory: 31344kb

input:

1000 10 10512080521412884683 4322091697636775176

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #100:

score: 8
Acceptable Answer
time: 17ms
memory: 31284kb

input:

1000 10 14839041853446568063 2900577407895090280

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #101:

score: 8
Acceptable Answer
time: 12ms
memory: 30708kb

input:

1000 10 555864648019475755 10623903714134539336

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #102:

score: 8
Acceptable Answer
time: 17ms
memory: 32424kb

input:

1000 10 15351408694997586068 13018688820428928134

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #103:

score: 8
Acceptable Answer
time: 13ms
memory: 31240kb

input:

1000 10 13781134732629544842 649106695383463671

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #104:

score: 8
Acceptable Answer
time: 12ms
memory: 31264kb

input:

1000 10 13103921156463006132 6008463984240882840

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #105:

score: 8
Acceptable Answer
time: 11ms
memory: 32084kb

input:

1000 10 13570315480591854059 16031003972511128594

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #106:

score: 8
Acceptable Answer
time: 16ms
memory: 32040kb

input:

1000 10 939728067048422960 6572615564422233011

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #107:

score: 8
Acceptable Answer
time: 12ms
memory: 31644kb

input:

1000 10 9730657778308128806 10818528495534558245

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #108:

score: 8
Acceptable Answer
time: 13ms
memory: 31940kb

input:

1000 10 14993828721272206953 16844668633587754736

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Subtask #4:

score: 8
Acceptable Answer

Test #109:

score: 8
Acceptable Answer
time: 13ms
memory: 30900kb

input:

1000 30 15510757929061591914 2629686482095382587

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #110:

score: 8
Acceptable Answer
time: 16ms
memory: 32088kb

input:

1000 30 12801036214420587075 2037510991448894723

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #111:

score: 8
Acceptable Answer
time: 12ms
memory: 31720kb

input:

1000 30 7278229868553719282 3031492496837408805

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #112:

score: 8
Acceptable Answer
time: 12ms
memory: 32668kb

input:

1000 30 5023044253913195306 10430362173020596870

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #113:

score: 8
Acceptable Answer
time: 9ms
memory: 30224kb

input:

1000 30 14375927177340504141 12571864925174024193

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #114:

score: 8
Acceptable Answer
time: 8ms
memory: 30944kb

input:

1000 30 6670727120156260286 15892206295475225514

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #115:

score: 8
Acceptable Answer
time: 12ms
memory: 31284kb

input:

1000 30 18286184159808909528 13065670740492976498

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #116:

score: 8
Acceptable Answer
time: 16ms
memory: 30252kb

input:

1000 30 3954788336215976339 7442831602180175236

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #117:

score: 8
Acceptable Answer
time: 18ms
memory: 31048kb

input:

1000 30 10952440412821131470 11349869625262155151

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #118:

score: 8
Acceptable Answer
time: 17ms
memory: 32020kb

input:

1000 30 4085102339188936571 15739592000796325584

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #119:

score: 8
Acceptable Answer
time: 11ms
memory: 30996kb

input:

1000 30 7706773163318195890 3352145088310669388

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #120:

score: 8
Acceptable Answer
time: 8ms
memory: 30048kb

input:

1000 30 13777535526390279015 797289958402503269

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #121:

score: 8
Acceptable Answer
time: 16ms
memory: 31524kb

input:

1000 30 8556325522564209758 17955966250807680816

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #122:

score: 8
Acceptable Answer
time: 13ms
memory: 31572kb

input:

1000 30 7363924610757141722 7852137169585416368

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #123:

score: 8
Acceptable Answer
time: 16ms
memory: 31740kb

input:

1000 30 10163937283778807635 11035337627209972542

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #124:

score: 8
Acceptable Answer
time: 12ms
memory: 32464kb

input:

1000 30 15419757916046227848 4668909061116779908

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #125:

score: 8
Acceptable Answer
time: 11ms
memory: 31560kb

input:

1000 30 672618169337249405 10664328148817883435

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #126:

score: 8
Acceptable Answer
time: 13ms
memory: 32144kb

input:

1000 30 5063121585155974658 6755615366902454195

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #127:

score: 8
Acceptable Answer
time: 15ms
memory: 30828kb

input:

1000 30 8558163706368102019 16841941454688543796

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #128:

score: 8
Acceptable Answer
time: 16ms
memory: 31376kb

input:

1000 30 11662060158847358808 4797190117440167877

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #129:

score: 8
Acceptable Answer
time: 12ms
memory: 30824kb

input:

1000 30 9073706970143758020 1582240709035328983

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #130:

score: 8
Acceptable Answer
time: 8ms
memory: 31216kb

input:

1000 30 8186759472286953608 11105424148319609938

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #131:

score: 8
Acceptable Answer
time: 13ms
memory: 30920kb

input:

1000 30 5847334012130682053 13320276639945825069

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #132:

score: 8
Acceptable Answer
time: 16ms
memory: 30768kb

input:

1000 30 7443440158558308795 6887347845812589564

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #133:

score: 8
Acceptable Answer
time: 9ms
memory: 30224kb

input:

1000 30 11305528358454252914 8295362506428551928

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #134:

score: 8
Acceptable Answer
time: 14ms
memory: 32452kb

input:

1000 30 7384288505844391014 7960204400404678053

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #135:

score: 8
Acceptable Answer
time: 12ms
memory: 31584kb

input:

1000 30 10321224009109632439 7081446363439574641

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #136:

score: 8
Acceptable Answer
time: 12ms
memory: 31804kb

input:

1000 30 10471826671587974423 78480078006165212

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #137:

score: 8
Acceptable Answer
time: 14ms
memory: 31536kb

input:

1000 30 16213211651888696440 8866465228901066804

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #138:

score: 8
Acceptable Answer
time: 12ms
memory: 32308kb

input:

1000 30 8236660749725225398 3545587591468540112

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #139:

score: 8
Acceptable Answer
time: 12ms
memory: 31840kb

input:

1000 30 6607466518388369970 797081879253700015

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #140:

score: 8
Acceptable Answer
time: 12ms
memory: 30200kb

input:

1000 30 4813863740767819220 2202452198245940946

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #141:

score: 8
Acceptable Answer
time: 14ms
memory: 31892kb

input:

1000 30 14559715038138208529 1495126237086538372

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #142:

score: 8
Acceptable Answer
time: 13ms
memory: 31064kb

input:

1000 30 2994652599112894046 17803480398762623920

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #143:

score: 8
Acceptable Answer
time: 12ms
memory: 30924kb

input:

1000 30 3586231851761129647 13277925850312293378

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #144:

score: 8
Acceptable Answer
time: 14ms
memory: 32464kb

input:

1000 30 6336578536886788319 2675249028071512010

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Subtask #5:

score: 0
Wrong Answer

Test #145:

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

input:

3 1000 341353812123787886 3685575517089631424

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #6:

score: 0
Wrong Answer

Test #181:

score: 10
Accepted
time: 0ms
memory: 6012kb

input:

10 1000 18326939717248212778 15447461170187547045

output:

4123764187658

result:

ok Perfect. 10

Test #182:

score: 0
Wrong Answer
time: 0ms
memory: 6064kb

input:

10 1000 14303031343316484183 9472080590628751829

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #7:

score: 8
Acceptable Answer

Test #217:

score: 8
Acceptable Answer
time: 15ms
memory: 19644kb

input:

500 1000 3911210051670624968 2787181900148297327

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #218:

score: 8
Acceptable Answer
time: 11ms
memory: 18368kb

input:

500 1000 12450618735493522488 12992043229059408722

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #219:

score: 8
Acceptable Answer
time: 11ms
memory: 18848kb

input:

500 1000 11069062474421512571 11771283736385225888

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #220:

score: 8
Acceptable Answer
time: 9ms
memory: 20640kb

input:

500 1000 12030437727196687278 3635786373293977777

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #221:

score: 8
Acceptable Answer
time: 15ms
memory: 19480kb

input:

500 1000 3872073101711344974 12208640324328621987

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #222:

score: 8
Acceptable Answer
time: 11ms
memory: 19468kb

input:

500 1000 7859510094425854878 16343987436452853527

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #223:

score: 8
Acceptable Answer
time: 15ms
memory: 19424kb

input:

500 1000 10288842718408246821 14456646535715260536

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #224:

score: 8
Acceptable Answer
time: 11ms
memory: 20208kb

input:

500 1000 18330187155668089188 15210445359162021609

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #225:

score: 8
Acceptable Answer
time: 14ms
memory: 18044kb

input:

500 1000 2005856457032504585 99844445693740441

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #226:

score: 8
Acceptable Answer
time: 11ms
memory: 20708kb

input:

500 1000 9453714621680340400 15495898881721491999

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #227:

score: 8
Acceptable Answer
time: 15ms
memory: 20116kb

input:

500 1000 12075794770378620661 4976284918621589981

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #228:

score: 8
Acceptable Answer
time: 9ms
memory: 19852kb

input:

500 1000 6308492247099916527 3369560637860859763

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #229:

score: 8
Acceptable Answer
time: 10ms
memory: 18952kb

input:

500 1000 9284688836681251024 2426654752001937636

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #230:

score: 8
Acceptable Answer
time: 15ms
memory: 19860kb

input:

500 1000 8040140754015568076 7491809528243903280

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #231:

score: 8
Acceptable Answer
time: 9ms
memory: 20052kb

input:

500 1000 1853435739113625284 14515505623107861412

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #232:

score: 8
Acceptable Answer
time: 16ms
memory: 19624kb

input:

500 1000 3574765122048236070 7219245209003197351

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #233:

score: 8
Acceptable Answer
time: 11ms
memory: 19144kb

input:

500 1000 4142072214507982385 16054985080853226713

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #234:

score: 8
Acceptable Answer
time: 9ms
memory: 20004kb

input:

500 1000 5595311565343228255 13845596039634954391

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #235:

score: 8
Acceptable Answer
time: 10ms
memory: 18512kb

input:

500 1000 15769700446173674061 8921313218967163165

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #236:

score: 8
Acceptable Answer
time: 13ms
memory: 20040kb

input:

500 1000 14308969058837646126 9989146294081471953

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #237:

score: 8
Acceptable Answer
time: 16ms
memory: 18528kb

input:

500 1000 4344525014260164171 13328115656897753308

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #238:

score: 8
Acceptable Answer
time: 14ms
memory: 19368kb

input:

500 1000 9502858057401844356 7517482290172991629

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #239:

score: 8
Acceptable Answer
time: 15ms
memory: 19320kb

input:

500 1000 14329203628029783645 6994838492031596982

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #240:

score: 8
Acceptable Answer
time: 15ms
memory: 19716kb

input:

500 1000 6584107806636516433 1734266347006898163

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #241:

score: 8
Acceptable Answer
time: 13ms
memory: 18132kb

input:

500 1000 4730445570079162214 11200582368057666991

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #242:

score: 8
Acceptable Answer
time: 11ms
memory: 19984kb

input:

500 1000 12131791478889318147 90425344672593305

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #243:

score: 8
Acceptable Answer
time: 13ms
memory: 19364kb

input:

500 1000 15280519285615726848 3966718955736385323

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #244:

score: 8
Acceptable Answer
time: 14ms
memory: 18352kb

input:

500 1000 13536864083748980255 7512705063977657212

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #245:

score: 8
Acceptable Answer
time: 9ms
memory: 19220kb

input:

500 1000 2866529125325015539 4988250649359578060

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #246:

score: 8
Acceptable Answer
time: 12ms
memory: 20048kb

input:

500 1000 8356632996470471082 1955281105770819807

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #247:

score: 8
Acceptable Answer
time: 14ms
memory: 18684kb

input:

500 1000 5427148432621165391 1616532906209105227

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #248:

score: 8
Acceptable Answer
time: 11ms
memory: 18864kb

input:

500 1000 7574907226142235517 7938509812046736092

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #249:

score: 8
Acceptable Answer
time: 9ms
memory: 19612kb

input:

500 1000 12608804017168928181 12280392327171061624

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #250:

score: 8
Acceptable Answer
time: 11ms
memory: 18236kb

input:

500 1000 3909115960984201676 14623615881690352862

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #251:

score: 8
Acceptable Answer
time: 12ms
memory: 19764kb

input:

500 1000 11445898621212588459 14853333744180787627

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #252:

score: 8
Acceptable Answer
time: 10ms
memory: 19428kb

input:

500 1000 18028780493452970759 10607315082558949410

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Subtask #8:

score: 8
Acceptable Answer

Test #253:

score: 8
Acceptable Answer
time: 26ms
memory: 31420kb

input:

1000 1000 2442055921391744378 15448328346037637846

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #254:

score: 8
Acceptable Answer
time: 28ms
memory: 31324kb

input:

1000 1000 16647476705341035385 17846374371867977517

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #255:

score: 8
Acceptable Answer
time: 28ms
memory: 32532kb

input:

1000 1000 15269935845657062594 3733483100427089893

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #256:

score: 8
Acceptable Answer
time: 29ms
memory: 32628kb

input:

1000 1000 7827255001840617549 14765536290277618109

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #257:

score: 8
Acceptable Answer
time: 24ms
memory: 30192kb

input:

1000 1000 13701238499442576365 17227534761439395182

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #258:

score: 8
Acceptable Answer
time: 23ms
memory: 31820kb

input:

1000 1000 14150694437641300095 7012253273483526176

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #259:

score: 8
Acceptable Answer
time: 31ms
memory: 31104kb

input:

1000 1000 3209009366144994095 1260289214875388784

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #260:

score: 8
Acceptable Answer
time: 26ms
memory: 32492kb

input:

1000 1000 9276259532615321589 16054182787553268415

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #261:

score: 8
Acceptable Answer
time: 33ms
memory: 31644kb

input:

1000 1000 2376470501919743219 8454901431202341881

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #262:

score: 8
Acceptable Answer
time: 30ms
memory: 31892kb

input:

1000 1000 8124003251140810684 17046112885743347876

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #263:

score: 8
Acceptable Answer
time: 25ms
memory: 30740kb

input:

1000 1000 498046130035995054 9343896178609470666

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #264:

score: 8
Acceptable Answer
time: 32ms
memory: 30896kb

input:

1000 1000 8232123788512164157 5380600461990799855

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #265:

score: 8
Acceptable Answer
time: 31ms
memory: 31688kb

input:

1000 1000 17343086271442564004 17267253247072528546

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #266:

score: 8
Acceptable Answer
time: 29ms
memory: 31960kb

input:

1000 1000 658571136895258792 1296511738645579222

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #267:

score: 8
Acceptable Answer
time: 35ms
memory: 31816kb

input:

1000 1000 15280558666146147829 17361773959325783669

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #268:

score: 8
Acceptable Answer
time: 31ms
memory: 31896kb

input:

1000 1000 16055592008216797890 12702482638735076729

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #269:

score: 8
Acceptable Answer
time: 27ms
memory: 32440kb

input:

1000 1000 11844570679478259607 2259274649863893446

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #270:

score: 8
Acceptable Answer
time: 26ms
memory: 31752kb

input:

1000 1000 13281855318000524085 12976753030014592542

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #271:

score: 8
Acceptable Answer
time: 32ms
memory: 32608kb

input:

1000 1000 112965995807418418 5285593098042419225

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #272:

score: 8
Acceptable Answer
time: 32ms
memory: 31116kb

input:

1000 1000 18428364413671739105 7824896363716141341

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #273:

score: 8
Acceptable Answer
time: 21ms
memory: 32804kb

input:

1000 1000 4736043027026703934 18134536854010678826

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #274:

score: 8
Acceptable Answer
time: 27ms
memory: 31052kb

input:

1000 1000 6801818849976207195 71142770362301839

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #275:

score: 8
Acceptable Answer
time: 28ms
memory: 31992kb

input:

1000 1000 13049919169450950307 16349987534598898746

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #276:

score: 8
Acceptable Answer
time: 29ms
memory: 31840kb

input:

1000 1000 12024034565628036956 16160528376115834715

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #277:

score: 8
Acceptable Answer
time: 28ms
memory: 31940kb

input:

1000 1000 9380446667117198505 16132169379590613549

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #278:

score: 8
Acceptable Answer
time: 23ms
memory: 30212kb

input:

1000 1000 8571066516910635762 79579533323815931

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #279:

score: 8
Acceptable Answer
time: 32ms
memory: 30116kb

input:

1000 1000 8194775572854868253 4531404443373941922

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #280:

score: 8
Acceptable Answer
time: 26ms
memory: 31436kb

input:

1000 1000 14010869570619320332 8495323777974553283

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #281:

score: 8
Acceptable Answer
time: 34ms
memory: 30044kb

input:

1000 1000 12369822767539763512 11944264880251376849

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #282:

score: 8
Acceptable Answer
time: 28ms
memory: 30960kb

input:

1000 1000 7036199069635679534 4587745873040737924

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #283:

score: 8
Acceptable Answer
time: 29ms
memory: 31436kb

input:

1000 1000 15547761817816490088 5852030270042037434

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #284:

score: 8
Acceptable Answer
time: 31ms
memory: 32032kb

input:

1000 1000 2323101367847953902 14133496205473203601

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #285:

score: 8
Acceptable Answer
time: 29ms
memory: 32744kb

input:

1000 1000 13888293757058422846 15460976391506261936

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #286:

score: 8
Acceptable Answer
time: 34ms
memory: 31364kb

input:

1000 1000 12566227964038476467 13432185697942495632

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #287:

score: 8
Acceptable Answer
time: 29ms
memory: 31580kb

input:

1000 1000 10775094794255711589 16788170504560580934

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #288:

score: 8
Acceptable Answer
time: 28ms
memory: 31176kb

input:

1000 1000 10071661744346988709 5598264466611788374

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Subtask #9:

score: 8
Acceptable Answer

Test #289:

score: 8
Acceptable Answer
time: 58ms
memory: 43480kb

input:

1500 1500 8660688640427922501 1436138393991664715

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #290:

score: 8
Acceptable Answer
time: 62ms
memory: 44096kb

input:

1500 1500 15821468721449590935 1370287063033011416

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #291:

score: 8
Acceptable Answer
time: 59ms
memory: 43892kb

input:

1500 1500 14905706279197760556 7979115894370748835

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #292:

score: 8
Acceptable Answer
time: 63ms
memory: 43408kb

input:

1500 1500 11860131552596764958 8017709035069681480

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #293:

score: 8
Acceptable Answer
time: 54ms
memory: 44952kb

input:

1500 1500 10793002976111806344 1778012833479234478

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #294:

score: 8
Acceptable Answer
time: 65ms
memory: 44640kb

input:

1500 1500 3707613830849207178 3823567109353227705

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #295:

score: 8
Acceptable Answer
time: 60ms
memory: 43400kb

input:

1500 1500 10730093168415972859 7485726458233694992

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #296:

score: 8
Acceptable Answer
time: 67ms
memory: 42328kb

input:

1500 1500 6276427342590429778 9830851135031111913

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #297:

score: 8
Acceptable Answer
time: 68ms
memory: 43572kb

input:

1500 1500 771222033145985497 10716000098431620324

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #298:

score: 8
Acceptable Answer
time: 70ms
memory: 43224kb

input:

1500 1500 9271750811903874347 5160963686763585605

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #299:

score: 8
Acceptable Answer
time: 59ms
memory: 43804kb

input:

1500 1500 3225209063906372074 884135422167039708

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #300:

score: 8
Acceptable Answer
time: 60ms
memory: 42228kb

input:

1500 1500 5707316362166515346 2578185571291578563

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #301:

score: 8
Acceptable Answer
time: 60ms
memory: 44760kb

input:

1500 1500 17233452110933630216 8060107981077390919

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #302:

score: 8
Acceptable Answer
time: 59ms
memory: 44016kb

input:

1500 1500 14565239542992731525 5596010651879611568

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #303:

score: 8
Acceptable Answer
time: 63ms
memory: 44780kb

input:

1500 1500 5604298819926611114 9696081885063088986

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #304:

score: 8
Acceptable Answer
time: 55ms
memory: 43772kb

input:

1500 1500 14816690579422088506 15894404033860661698

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #305:

score: 8
Acceptable Answer
time: 70ms
memory: 43444kb

input:

1500 1500 1713586704845356759 13973294383996739260

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #306:

score: 8
Acceptable Answer
time: 65ms
memory: 43608kb

input:

1500 1500 14522131654132439180 12482005957955696483

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #307:

score: 8
Acceptable Answer
time: 74ms
memory: 44660kb

input:

1500 1500 8667561996852633412 9117073091992559102

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #308:

score: 8
Acceptable Answer
time: 61ms
memory: 43720kb

input:

1500 1500 4938206616089681458 2344888672117789236

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #309:

score: 8
Acceptable Answer
time: 55ms
memory: 42472kb

input:

1500 1500 5417078627712096891 3387986847099133636

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #310:

score: 8
Acceptable Answer
time: 62ms
memory: 44112kb

input:

1500 1500 15279190808935773554 17386259390919781373

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #311:

score: 8
Acceptable Answer
time: 56ms
memory: 44940kb

input:

1500 1500 4660736882821437836 3057358251661448099

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #312:

score: 8
Acceptable Answer
time: 70ms
memory: 44952kb

input:

1500 1500 12977115211852243655 2990540416920348059

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #313:

score: 8
Acceptable Answer
time: 59ms
memory: 45100kb

input:

1500 1500 6872887052776151935 15524917341052561325

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #314:

score: 8
Acceptable Answer
time: 64ms
memory: 43532kb

input:

1500 1500 7929402025520068977 13863078002579700637

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #315:

score: 8
Acceptable Answer
time: 61ms
memory: 43344kb

input:

1500 1500 15505613483719086736 4176670369734052175

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #316:

score: 8
Acceptable Answer
time: 63ms
memory: 45256kb

input:

1500 1500 6934614962913797986 18094516775993075355

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #317:

score: 8
Acceptable Answer
time: 64ms
memory: 42352kb

input:

1500 1500 7106802515016554329 4184843161005717373

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #318:

score: 8
Acceptable Answer
time: 69ms
memory: 44856kb

input:

1500 1500 11868153384668129069 16717020189753503951

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #319:

score: 8
Acceptable Answer
time: 73ms
memory: 42216kb

input:

1500 1500 3940247893216235832 2561453070110778764

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #320:

score: 8
Acceptable Answer
time: 54ms
memory: 42548kb

input:

1500 1500 839345024594186050 11901568297122919168

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #321:

score: 8
Acceptable Answer
time: 67ms
memory: 42156kb

input:

1500 1500 4835519574303509069 10870739891590851490

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #322:

score: 8
Acceptable Answer
time: 58ms
memory: 45156kb

input:

1500 1500 4306278969622507976 11603410447576150585

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #323:

score: 8
Acceptable Answer
time: 67ms
memory: 44080kb

input:

1500 1500 3988177172094663035 1003704229834891695

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #324:

score: 8
Acceptable Answer
time: 64ms
memory: 43812kb

input:

1500 1500 8985317573333576845 14201170872917056420

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Subtask #10:

score: 8
Acceptable Answer

Test #325:

score: 8
Acceptable Answer
time: 111ms
memory: 54776kb

input:

2000 2000 6596342253746377097 6195418207254921855

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #326:

score: 8
Acceptable Answer
time: 97ms
memory: 56088kb

input:

2000 2000 9578410915320215977 9798607667370863800

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #327:

score: 8
Acceptable Answer
time: 116ms
memory: 56112kb

input:

2000 2000 1428348465152969447 5509830744497891251

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #328:

score: 8
Acceptable Answer
time: 116ms
memory: 56316kb

input:

2000 2000 2723613418581252108 14036474887546456029

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #329:

score: 8
Acceptable Answer
time: 121ms
memory: 57532kb

input:

2000 2000 6005493680129505896 17128651506661589319

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #330:

score: 8
Acceptable Answer
time: 121ms
memory: 57212kb

input:

2000 2000 15482211388333944502 16497182436509890648

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #331:

score: 8
Acceptable Answer
time: 122ms
memory: 56088kb

input:

2000 2000 17150138237857599334 11354934086966526294

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #332:

score: 8
Acceptable Answer
time: 103ms
memory: 57136kb

input:

2000 2000 14563440037069478728 5294862541365511521

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #333:

score: 8
Acceptable Answer
time: 112ms
memory: 55892kb

input:

2000 2000 8386181302677145400 6315977446943840828

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #334:

score: 8
Acceptable Answer
time: 111ms
memory: 57640kb

input:

2000 2000 3552373659101665962 6888165094720747729

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #335:

score: 8
Acceptable Answer
time: 119ms
memory: 54604kb

input:

2000 2000 7194956278663366501 12666077908035860904

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #336:

score: 8
Acceptable Answer
time: 109ms
memory: 57140kb

input:

2000 2000 13239354503764003546 10582671449561621336

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #337:

score: 8
Acceptable Answer
time: 102ms
memory: 57132kb

input:

2000 2000 9496696710018856863 9561633364955048128

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #338:

score: 8
Acceptable Answer
time: 95ms
memory: 55832kb

input:

2000 2000 7246594424647246123 12469099407620847942

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #339:

score: 8
Acceptable Answer
time: 92ms
memory: 57152kb

input:

2000 2000 6808005433795673581 13998266915664499136

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #340:

score: 8
Acceptable Answer
time: 111ms
memory: 57156kb

input:

2000 2000 12576041754224039878 7855140611629403640

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #341:

score: 8
Acceptable Answer
time: 123ms
memory: 54624kb

input:

2000 2000 10138951565672225022 9527160383930803734

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #342:

score: 8
Acceptable Answer
time: 96ms
memory: 57572kb

input:

2000 2000 15034115921681540301 13120564017898354258

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #343:

score: 8
Acceptable Answer
time: 114ms
memory: 55928kb

input:

2000 2000 285336284015200579 7304967004972457111

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #344:

score: 8
Acceptable Answer
time: 112ms
memory: 54372kb

input:

2000 2000 7755774589845873473 10034376063028114974

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #345:

score: 8
Acceptable Answer
time: 118ms
memory: 55712kb

input:

2000 2000 2229726246402489493 220249498403850235

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #346:

score: 8
Acceptable Answer
time: 114ms
memory: 57632kb

input:

2000 2000 3595793409718869031 14007885242506245306

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #347:

score: 8
Acceptable Answer
time: 110ms
memory: 56952kb

input:

2000 2000 5430749482281836807 15731895263696532890

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #348:

score: 8
Acceptable Answer
time: 98ms
memory: 54704kb

input:

2000 2000 2205467802504114036 10109517318331306527

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #349:

score: 8
Acceptable Answer
time: 104ms
memory: 55776kb

input:

2000 2000 6098568517708985395 10817663337859889933

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #350:

score: 8
Acceptable Answer
time: 110ms
memory: 54564kb

input:

2000 2000 3332047348831603060 8722403298584358348

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #351:

score: 8
Acceptable Answer
time: 112ms
memory: 54280kb

input:

2000 2000 9101199653245206856 4960126505935936136

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #352:

score: 8
Acceptable Answer
time: 111ms
memory: 57432kb

input:

2000 2000 9732736270978642378 9920592739476859865

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #353:

score: 8
Acceptable Answer
time: 97ms
memory: 54656kb

input:

2000 2000 1827200230261786866 8640109683148958626

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #354:

score: 8
Acceptable Answer
time: 107ms
memory: 56188kb

input:

2000 2000 400512476989700377 3476197501044775192

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #355:

score: 8
Acceptable Answer
time: 96ms
memory: 57584kb

input:

2000 2000 18135269742511414737 12763214495337019198

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #356:

score: 8
Acceptable Answer
time: 117ms
memory: 55940kb

input:

2000 2000 1122830929746250915 6186843342017165642

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #357:

score: 8
Acceptable Answer
time: 97ms
memory: 57652kb

input:

2000 2000 7410259230380612588 8711724299306681058

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #358:

score: 8
Acceptable Answer
time: 106ms
memory: 56080kb

input:

2000 2000 1038603576444391321 17595267522382196181

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #359:

score: 8
Acceptable Answer
time: 112ms
memory: 55792kb

input:

2000 2000 4317552906538337809 11678255346923351126

output:

4123764187656

result:

points 0.80 Correct Answer. 8

Test #360:

score: 8
Acceptable Answer
time: 110ms
memory: 57508kb

input:

2000 2000 15155879931242619849 6475304291932894939

output:

4123764187656

result:

points 0.80 Correct Answer. 8