QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#557236#8221. 多方计算Kevin53073 102ms55940kbC++231.0kb2024-09-11 08:20:372024-09-11 08:20:37

Judging History

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

  • [2024-09-11 08:20:37]
  • 评测
  • 测评结果:3
  • 用时:102ms
  • 内存:55940kb
  • [2024-09-11 08:20:37]
  • 提交

answer

//Author: Kevin
#include<bits/stdc++.h>
#include"mpc.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);}
int precalc(int n,int m)
{
	return n+m+__lg(n);
}
bool transmit(player &player,int round,int position)
{
	int b=max(round-position-1,0);
	int v=player.last_message;
	player.memory[b]+=v;
	while(player.memory[b]==2)
	{
		player.memory[b]=0;
		player.memory[++b]++;
	}
	int b2=round-position-1;
	if(b2>=0)
		return player.memory[b2];
	return 0;
}

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 10
Accepted
time: 1ms
memory: 5980kb

input:

5 5 3185997250635081508 10243950506680270049

output:

4123764187658

result:

ok Perfect. 10

Test #2:

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

input:

5 5 3552483843587513799 14478819593833617714

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #2:

score: 3
Acceptable Answer

Test #37:

score: 3
Acceptable Answer
time: 15ms
memory: 30664kb

input:

1000 1 17833636513278974999 18032835279213373306

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #38:

score: 3
Acceptable Answer
time: 11ms
memory: 30988kb

input:

1000 1 14730911653810224758 12266600726496100996

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #39:

score: 3
Acceptable Answer
time: 11ms
memory: 30084kb

input:

1000 1 8799733959292548924 5387063902427699037

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #40:

score: 3
Acceptable Answer
time: 19ms
memory: 32544kb

input:

1000 1 9630334707439747607 4291049102998855878

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #41:

score: 3
Acceptable Answer
time: 11ms
memory: 32008kb

input:

1000 1 14659313773847015835 5872125537220100813

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #42:

score: 3
Acceptable Answer
time: 15ms
memory: 31756kb

input:

1000 1 8843810642295111463 9289549733703682079

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #43:

score: 3
Acceptable Answer
time: 11ms
memory: 32004kb

input:

1000 1 12506531245496737504 16568422609970603828

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #44:

score: 3
Acceptable Answer
time: 11ms
memory: 31624kb

input:

1000 1 1687678405863133532 5008244365647721871

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #45:

score: 3
Acceptable Answer
time: 15ms
memory: 32340kb

input:

1000 1 521330378415348792 8325284866479671525

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #46:

score: 3
Acceptable Answer
time: 14ms
memory: 31944kb

input:

1000 1 6611871207626880018 9817110237545272117

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #47:

score: 3
Acceptable Answer
time: 18ms
memory: 31036kb

input:

1000 1 15306541734406271267 14703264691591359191

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #48:

score: 3
Acceptable Answer
time: 14ms
memory: 30308kb

input:

1000 1 3566881709297895710 7594566018112860837

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #49:

score: 3
Acceptable Answer
time: 14ms
memory: 31052kb

input:

1000 1 4397454027521899216 7721560744364225236

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #50:

score: 3
Acceptable Answer
time: 13ms
memory: 31696kb

input:

1000 1 5142075432412851988 16742257564666708908

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #51:

score: 3
Acceptable Answer
time: 18ms
memory: 30156kb

input:

1000 1 12044326647208924489 2167359237561753365

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #52:

score: 3
Acceptable Answer
time: 15ms
memory: 31256kb

input:

1000 1 16253907834346424870 11108645373354737991

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #53:

score: 3
Acceptable Answer
time: 15ms
memory: 32416kb

input:

1000 1 16626499607125776891 8356934117282130057

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #54:

score: 3
Acceptable Answer
time: 15ms
memory: 32088kb

input:

1000 1 3282168031615086167 3657599301669157549

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #55:

score: 3
Acceptable Answer
time: 19ms
memory: 30192kb

input:

1000 1 14215560210789593083 15626251936339749845

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #56:

score: 3
Acceptable Answer
time: 11ms
memory: 31940kb

input:

1000 1 2190592376641362424 13403200408316995773

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #57:

score: 3
Acceptable Answer
time: 11ms
memory: 31236kb

input:

1000 1 11465558394225010724 2496884116655812179

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #58:

score: 3
Acceptable Answer
time: 11ms
memory: 31540kb

input:

1000 1 18276809344802529187 9561628486185706823

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #59:

score: 3
Acceptable Answer
time: 11ms
memory: 32072kb

input:

1000 1 7860122780923461882 10042766163912380121

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #60:

score: 3
Acceptable Answer
time: 11ms
memory: 31336kb

input:

1000 1 12388686810101047811 3399743554629441239

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #61:

score: 3
Acceptable Answer
time: 15ms
memory: 31612kb

input:

1000 1 14427576709382087754 13171985723510234618

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #62:

score: 3
Acceptable Answer
time: 11ms
memory: 31792kb

input:

1000 1 7668903319567597796 8075077151477112929

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #63:

score: 3
Acceptable Answer
time: 11ms
memory: 30204kb

input:

1000 1 14122766694312513270 6279188681168230824

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #64:

score: 3
Acceptable Answer
time: 11ms
memory: 32008kb

input:

1000 1 5699987051542490697 8384784519684171122

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #65:

score: 3
Acceptable Answer
time: 14ms
memory: 32276kb

input:

1000 1 11830949407183123854 9439666782273874030

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #66:

score: 3
Acceptable Answer
time: 14ms
memory: 30136kb

input:

1000 1 9554889270917528521 11260732977199304707

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #67:

score: 3
Acceptable Answer
time: 11ms
memory: 31336kb

input:

1000 1 17459479638232299425 11063210786482562440

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #68:

score: 3
Acceptable Answer
time: 15ms
memory: 31296kb

input:

1000 1 15086329177686012536 8242831546145677467

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #69:

score: 3
Acceptable Answer
time: 18ms
memory: 30024kb

input:

1000 1 15745267644798804685 16686857765674424216

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #70:

score: 3
Acceptable Answer
time: 11ms
memory: 31908kb

input:

1000 1 9660862519797395098 1310528139508248324

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #71:

score: 3
Acceptable Answer
time: 19ms
memory: 32136kb

input:

1000 1 3951648867737539370 17836842425696853386

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #72:

score: 3
Acceptable Answer
time: 11ms
memory: 30168kb

input:

1000 1 3683735297104135564 13137254066150313412

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Subtask #3:

score: 0
Wrong Answer

Test #73:

score: 0
Wrong Answer
time: 15ms
memory: 31832kb

input:

1000 10 7581650225429700886 16046788410942473709

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #4:

score: 0
Wrong Answer

Test #109:

score: 3
Acceptable Answer
time: 13ms
memory: 31764kb

input:

1000 30 15510757929061591914 2629686482095382587

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #110:

score: 0
Wrong Answer
time: 11ms
memory: 30044kb

input:

1000 30 12801036214420587075 2037510991448894723

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #5:

score: 0
Wrong Answer

Test #145:

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

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: 1ms
memory: 6060kb

input:

10 1000 18326939717248212778 15447461170187547045

output:

4123764187658

result:

ok Perfect. 10

Test #182:

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

input:

10 1000 14303031343316484183 9472080590628751829

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #7:

score: 0
Wrong Answer

Test #217:

score: 4
Acceptable Answer
time: 9ms
memory: 19944kb

input:

500 1000 3911210051670624968 2787181900148297327

output:

4123764187652

result:

points 0.40 Correct Answer. 4

Test #218:

score: 0
Wrong Answer
time: 10ms
memory: 18848kb

input:

500 1000 12450618735493522488 12992043229059408722

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #8:

score: 0
Wrong Answer

Test #253:

score: 0
Wrong Answer
time: 21ms
memory: 31432kb

input:

1000 1000 2442055921391744378 15448328346037637846

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #9:

score: 0
Wrong Answer

Test #289:

score: 3
Acceptable Answer
time: 57ms
memory: 43996kb

input:

1500 1500 8660688640427922501 1436138393991664715

output:

4123764187651

result:

points 0.30 Correct Answer. 3

Test #290:

score: 0
Wrong Answer
time: 56ms
memory: 44968kb

input:

1500 1500 15821468721449590935 1370287063033011416

output:

4123764187648

result:

points 0.0 Correct Answer. 0

Subtask #10:

score: 0
Wrong Answer

Test #325:

score: 0
Wrong Answer
time: 102ms
memory: 55940kb

input:

2000 2000 6596342253746377097 6195418207254921855

output:

4123764187648

result:

points 0.0 Correct Answer. 0