QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#354309 | #8221. 多方计算 | xyz123 | 12 | 155ms | 53048kb | C++14 | 3.2kb | 2024-03-15 08:34:50 | 2024-03-15 08:34:50 |
Judging History
answer
#include<bits/stdc++.h>
#include "mpc.h"
using namespace std;
const int N=22000,M=2200;
long long a,b,dp[2001][2001],f[2001],y[2001],L[2001];
int precalc(int n, int m)
{
a=n,b=m;
long long tt=1,gg=0;
while(tt<=n) tt*=2,++gg;
gg=6;
int hh=12,uu=1;
while(hh<a)
{
for(int i=hh;i<hh+uu&&i<a;i++) L[i]=b-uu;
hh+=uu;
}
return n+m+gg;
}
bool transmit(player &player, int round, int position)
{
int tt=player.last_message;
int g1=round-position-1;
int nw=position;
if(g1>=0)
{
player.memory[g1]+=tt;
for(int i=g1;i<=M;i++)
{
if(player.memory[i]>1)
{
player.memory[i]-=2;
player.memory[i+1]++;
}
else break;
}
}
else if(nw!=0&&L[nw-1]+round-2>=0)
{
int g2=L[nw-1]+round-2;
player.memory[g2]+=tt;
for(int i=g2;i<=M;i++)
{
if(player.memory[i]>1)
{
player.memory[i]-=2;
player.memory[i+1]++;
}
else break;
}
}
if(g1<0)
{
if(nw<12) return 0;
if(L[nw]+round-1<0) return 0;
return player.memory[L[nw]+round-1];
}
return player.memory[g1];
}
//
//namespace grader{
// int score[10]={100,13,11,8,5,5,4,4,3,3};
// std::mt19937_64 rnd(time(0));
// struct bigint{
// int val[M];
// void clear(){
// memset(val,0,sizeof(val));
// }
// void gen(int len){
// for(int i=0;i<len;i++)val[i]=rnd()%2;
// }
// void read(int len){
// for(int i=0;i<len;i++)std::cin>>val[i];
// }
// void print(int len){
// for(int i=0;i<len;i++)printf("%d",val[i]);
// printf("\n");
// }
// }num[N],correct_result;
// bigint plus(bigint x, bigint y){
// int carry=0;
// bigint ans;ans.clear();
// for(int i=0;i<M;i++){
// ans.val[i]=(x.val[i]+y.val[i]+carry)%2;
// carry=(x.val[i]+y.val[i]+carry)/2;
// }
// return ans;
// }
// int n,m,ans;
// ::player player[N];
// void gen_data(int n,int m){
// for(int i=0;i<n;i++)num[i].read(m);
// correct_result.clear();
// for(int i=0;i<n;i++)correct_result=plus(correct_result,num[i]);
// }
// void grade(){
// std::cin>>n>>m;
// ans=precalc(n,m);
// gen_data(n,m);
// for(int i=0;i<n;i++){
// player[i].memory.fill(0);
// for(int j=0;j<M;j++)player[i].memory[j]=num[i].val[j];
// }
// for(int i=1;i<=ans;i++){
// for(int j=n;j>=0;j--){
// bool curr=transmit(player[j],i,j);
// if(j<n)player[j+1].last_message=curr;
// }
// }
// bool correct=1;
// correct_result.print(M);
// for(int i=0;i<M;i++)correct&=(player[n].memory[i]==correct_result.val[i]);
// for(int i=0;i<M;i++)printf("%d",player[n].memory[i]);puts("");
// if(!correct){
// printf("Your answer is not correct.");
// }
// else{
// int score_=0;
// for(int i=0;i<=9;i++)if(n+m+score[i]>=ans)score_++;
// printf("OK, you get %d%% points",score_*10);
// }
// }
//}
//
//int main(){
// std::ios::sync_with_stdio(0);std::cin.tie(0);
// grader::grade();
// return 0;
//}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 4
Acceptable Answer
Test #1:
score: 4
Acceptable Answer
time: 1ms
memory: 3904kb
input:
5 5 3185997250635081508 10243950506680270049
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #2:
score: 4
Acceptable Answer
time: 1ms
memory: 3984kb
input:
5 5 3552483843587513799 14478819593833617714
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #3:
score: 4
Acceptable Answer
time: 1ms
memory: 3976kb
input:
5 5 1049434279474537131 1049728252928449771
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #4:
score: 4
Acceptable Answer
time: 1ms
memory: 3980kb
input:
5 5 8922384302424007645 1173548755077470934
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #5:
score: 4
Acceptable Answer
time: 1ms
memory: 4008kb
input:
5 5 10436985171519237349 6372260076854600203
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #6:
score: 4
Acceptable Answer
time: 1ms
memory: 4076kb
input:
5 5 3969271731891539589 872380446563047377
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #7:
score: 4
Acceptable Answer
time: 1ms
memory: 3904kb
input:
5 5 10791248432551339097 10907238234860663613
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #8:
score: 4
Acceptable Answer
time: 0ms
memory: 3976kb
input:
5 5 4133452284370185751 8351536681439074389
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #9:
score: 4
Acceptable Answer
time: 0ms
memory: 3948kb
input:
5 5 4588466072500947787 2668799652971323944
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #10:
score: 4
Acceptable Answer
time: 1ms
memory: 4024kb
input:
5 5 14152525429264304911 13775135703660625045
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #11:
score: 4
Acceptable Answer
time: 0ms
memory: 3868kb
input:
5 5 7421526808561975748 10544499515413224856
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #12:
score: 4
Acceptable Answer
time: 0ms
memory: 3904kb
input:
5 5 10533068226990172617 16920379813521486362
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #13:
score: 4
Acceptable Answer
time: 1ms
memory: 4080kb
input:
5 5 12984923981069466020 10402168891728084823
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #14:
score: 4
Acceptable Answer
time: 1ms
memory: 3900kb
input:
5 5 4547699393608837176 17811338561394180193
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #15:
score: 4
Acceptable Answer
time: 1ms
memory: 4004kb
input:
5 5 7797814030854767695 12994778421940209897
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #16:
score: 4
Acceptable Answer
time: 1ms
memory: 3896kb
input:
5 5 13586090146748389854 8573353291555348877
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #17:
score: 4
Acceptable Answer
time: 1ms
memory: 3980kb
input:
5 5 7492677468637862337 17412579963708759713
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #18:
score: 4
Acceptable Answer
time: 0ms
memory: 4008kb
input:
5 5 12538610689378370624 10934031436815865430
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #19:
score: 4
Acceptable Answer
time: 1ms
memory: 4004kb
input:
5 5 6318529188948278594 4765084946625953274
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #20:
score: 4
Acceptable Answer
time: 0ms
memory: 4004kb
input:
5 5 12764462787770553234 16031550997283183642
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #21:
score: 4
Acceptable Answer
time: 0ms
memory: 3860kb
input:
5 5 16850625473722229566 12858849229956583645
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #22:
score: 4
Acceptable Answer
time: 1ms
memory: 3900kb
input:
5 5 3916752702561709368 14568996895902750709
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #23:
score: 4
Acceptable Answer
time: 0ms
memory: 3936kb
input:
5 5 2793964619809963444 14799430123914266097
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #24:
score: 4
Acceptable Answer
time: 1ms
memory: 3904kb
input:
5 5 14022384786197322639 15644367891444293842
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #25:
score: 4
Acceptable Answer
time: 0ms
memory: 4020kb
input:
5 5 4677661251438971503 7860382546781589019
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #26:
score: 4
Acceptable Answer
time: 1ms
memory: 3984kb
input:
5 5 865745884266339793 3234925754863119957
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #27:
score: 4
Acceptable Answer
time: 1ms
memory: 3980kb
input:
5 5 16601073251043052245 5101181031338699631
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #28:
score: 4
Acceptable Answer
time: 0ms
memory: 3900kb
input:
5 5 4666335567338264413 17869704479146009894
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #29:
score: 4
Acceptable Answer
time: 1ms
memory: 3884kb
input:
5 5 10276076269669835904 6933906736047769186
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #30:
score: 4
Acceptable Answer
time: 1ms
memory: 3896kb
input:
5 5 3547072148765339907 5805660413096765891
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #31:
score: 4
Acceptable Answer
time: 0ms
memory: 3988kb
input:
5 5 5905632931049428772 15089509813347254316
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #32:
score: 4
Acceptable Answer
time: 1ms
memory: 3988kb
input:
5 5 6148686139569402051 6521476089554108987
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #33:
score: 4
Acceptable Answer
time: 1ms
memory: 3900kb
input:
5 5 10293582518274215475 2676706070504789810
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #34:
score: 4
Acceptable Answer
time: 1ms
memory: 3948kb
input:
5 5 6589510135221577212 2537901023039331965
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #35:
score: 4
Acceptable Answer
time: 1ms
memory: 3900kb
input:
5 5 5329171491039567345 943883204937169735
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #36:
score: 4
Acceptable Answer
time: 1ms
memory: 3984kb
input:
5 5 18153714120372683774 16958100625183201027
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Subtask #2:
score: 0
Wrong Answer
Test #37:
score: 4
Acceptable Answer
time: 22ms
memory: 23872kb
input:
1000 1 17833636513278974999 18032835279213373306
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #38:
score: 4
Acceptable Answer
time: 11ms
memory: 23836kb
input:
1000 1 14730911653810224758 12266600726496100996
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #39:
score: 4
Acceptable Answer
time: 13ms
memory: 23904kb
input:
1000 1 8799733959292548924 5387063902427699037
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #40:
score: 0
Wrong Answer
time: 7ms
memory: 23900kb
input:
1000 1 9630334707439747607 4291049102998855878
output:
4123764187648
result:
points 0.0 Correct Answer. 0
Subtask #3:
score: 0
Wrong Answer
Test #73:
score: 0
Wrong Answer
time: 13ms
memory: 23868kb
input:
1000 10 7581650225429700886 16046788410942473709
output:
4123764187648
result:
points 0.0 Correct Answer. 0
Subtask #4:
score: 0
Wrong Answer
Test #109:
score: 0
Wrong Answer
time: 13ms
memory: 24004kb
input:
1000 30 15510757929061591914 2629686482095382587
output:
4123764187648
result:
points 0.0 Correct Answer. 0
Subtask #5:
score: 4
Acceptable Answer
Test #145:
score: 4
Acceptable Answer
time: 1ms
memory: 3868kb
input:
3 1000 341353812123787886 3685575517089631424
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #146:
score: 4
Acceptable Answer
time: 1ms
memory: 4048kb
input:
3 1000 17554024470069985393 14526118928412869541
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #147:
score: 4
Acceptable Answer
time: 1ms
memory: 3896kb
input:
3 1000 11100872062048687810 2436800177126848628
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #148:
score: 4
Acceptable Answer
time: 1ms
memory: 3868kb
input:
3 1000 12273008098306225590 16096411110101172825
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #149:
score: 4
Acceptable Answer
time: 1ms
memory: 3872kb
input:
3 1000 5654804106297455579 15032882241153944630
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #150:
score: 4
Acceptable Answer
time: 1ms
memory: 3952kb
input:
3 1000 11657166324406481549 9353824690667677565
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #151:
score: 4
Acceptable Answer
time: 1ms
memory: 3920kb
input:
3 1000 9856996265363358370 1303189576722459924
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #152:
score: 4
Acceptable Answer
time: 1ms
memory: 3960kb
input:
3 1000 13762958351315737777 17656605426995507653
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #153:
score: 4
Acceptable Answer
time: 1ms
memory: 3956kb
input:
3 1000 6594820974237499008 8275191558646832971
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #154:
score: 4
Acceptable Answer
time: 1ms
memory: 3868kb
input:
3 1000 15364608258723563115 6775374271333152271
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #155:
score: 4
Acceptable Answer
time: 1ms
memory: 3868kb
input:
3 1000 8632788633816311118 11344661582645288445
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #156:
score: 4
Acceptable Answer
time: 1ms
memory: 3976kb
input:
3 1000 3761871134959282714 6665092712492706442
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #157:
score: 4
Acceptable Answer
time: 1ms
memory: 3952kb
input:
3 1000 7094498594234606872 8910549019427251768
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #158:
score: 4
Acceptable Answer
time: 1ms
memory: 3912kb
input:
3 1000 3150940857228445655 13881058163925087748
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #159:
score: 4
Acceptable Answer
time: 1ms
memory: 3916kb
input:
3 1000 4138134701063904295 1719971509658971853
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #160:
score: 4
Acceptable Answer
time: 1ms
memory: 3960kb
input:
3 1000 5958659699359151667 2414251605389031835
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #161:
score: 4
Acceptable Answer
time: 0ms
memory: 3912kb
input:
3 1000 5944678764869264249 12798935463560265075
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #162:
score: 4
Acceptable Answer
time: 1ms
memory: 3916kb
input:
3 1000 4284102408051741763 14814507977658888488
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #163:
score: 4
Acceptable Answer
time: 1ms
memory: 3976kb
input:
3 1000 68627333965422180 112502394402464737
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #164:
score: 4
Acceptable Answer
time: 1ms
memory: 3960kb
input:
3 1000 9425733985639080184 7223503398227154738
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #165:
score: 4
Acceptable Answer
time: 1ms
memory: 3872kb
input:
3 1000 8943577954292636643 17050920714073219153
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #166:
score: 4
Acceptable Answer
time: 0ms
memory: 3892kb
input:
3 1000 11496811535444871688 17614364677931546223
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #167:
score: 4
Acceptable Answer
time: 1ms
memory: 3968kb
input:
3 1000 11326082696967067008 15441004054432712190
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #168:
score: 4
Acceptable Answer
time: 1ms
memory: 3892kb
input:
3 1000 674874697473693630 12649997796392211087
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #169:
score: 4
Acceptable Answer
time: 1ms
memory: 3960kb
input:
3 1000 1277251190199972050 14038814491796751538
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #170:
score: 4
Acceptable Answer
time: 0ms
memory: 3960kb
input:
3 1000 9145151749445284299 14293688652236038951
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #171:
score: 4
Acceptable Answer
time: 1ms
memory: 3988kb
input:
3 1000 15904416939287794082 14428505338208190980
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #172:
score: 4
Acceptable Answer
time: 1ms
memory: 3892kb
input:
3 1000 6941291132256775130 12849312109895089494
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #173:
score: 4
Acceptable Answer
time: 1ms
memory: 3896kb
input:
3 1000 17548422519337327843 202236826264518662
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #174:
score: 4
Acceptable Answer
time: 1ms
memory: 3876kb
input:
3 1000 17860234706011656272 8403215217493848355
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #175:
score: 4
Acceptable Answer
time: 1ms
memory: 3924kb
input:
3 1000 13237681186403336364 1756180179264870639
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #176:
score: 4
Acceptable Answer
time: 1ms
memory: 4052kb
input:
3 1000 10003937773928046600 7429936390634919158
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #177:
score: 4
Acceptable Answer
time: 1ms
memory: 3856kb
input:
3 1000 14525148579459393729 1812692019584178560
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #178:
score: 4
Acceptable Answer
time: 1ms
memory: 3920kb
input:
3 1000 9397110039933932416 8176227936526769663
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #179:
score: 4
Acceptable Answer
time: 0ms
memory: 3920kb
input:
3 1000 5937527883284015772 13220661886981109044
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #180:
score: 4
Acceptable Answer
time: 1ms
memory: 3928kb
input:
3 1000 16390577403064012729 17586432346005845474
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Subtask #6:
score: 4
Acceptable Answer
Test #181:
score: 4
Acceptable Answer
time: 1ms
memory: 4024kb
input:
10 1000 18326939717248212778 15447461170187547045
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #182:
score: 4
Acceptable Answer
time: 1ms
memory: 4120kb
input:
10 1000 14303031343316484183 9472080590628751829
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #183:
score: 4
Acceptable Answer
time: 1ms
memory: 4144kb
input:
10 1000 6233199299539916020 10372969863434063623
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #184:
score: 4
Acceptable Answer
time: 1ms
memory: 4124kb
input:
10 1000 1320605970495772867 4274588898210052251
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #185:
score: 4
Acceptable Answer
time: 1ms
memory: 4060kb
input:
10 1000 14667738752363126712 15543214327211267039
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #186:
score: 4
Acceptable Answer
time: 1ms
memory: 4028kb
input:
10 1000 10274293415244696041 17671200215417759696
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #187:
score: 4
Acceptable Answer
time: 1ms
memory: 4076kb
input:
10 1000 4129898547535974940 2097260917301158188
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #188:
score: 4
Acceptable Answer
time: 1ms
memory: 4132kb
input:
10 1000 18342269208029532093 15215718152940184965
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #189:
score: 4
Acceptable Answer
time: 1ms
memory: 4040kb
input:
10 1000 16324449487311799561 7257057435731061212
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #190:
score: 4
Acceptable Answer
time: 1ms
memory: 4124kb
input:
10 1000 10598547070254751569 6031892680829982589
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #191:
score: 4
Acceptable Answer
time: 1ms
memory: 4128kb
input:
10 1000 13928323168396069327 3069105625135055196
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #192:
score: 4
Acceptable Answer
time: 1ms
memory: 4032kb
input:
10 1000 7599195458077868580 2945826695732953372
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #193:
score: 4
Acceptable Answer
time: 1ms
memory: 4220kb
input:
10 1000 16598363586585449081 1440500051205705477
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #194:
score: 4
Acceptable Answer
time: 1ms
memory: 4216kb
input:
10 1000 16806046847554949461 2043290592937055118
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #195:
score: 4
Acceptable Answer
time: 1ms
memory: 4120kb
input:
10 1000 3412781614737162070 9157890737458129939
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #196:
score: 4
Acceptable Answer
time: 0ms
memory: 4212kb
input:
10 1000 4929995236017118670 8805666030260933868
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #197:
score: 4
Acceptable Answer
time: 1ms
memory: 4160kb
input:
10 1000 7054768874297620754 13274619671851658120
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #198:
score: 4
Acceptable Answer
time: 0ms
memory: 4040kb
input:
10 1000 7528585877073359050 793284693053543078
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #199:
score: 4
Acceptable Answer
time: 1ms
memory: 4076kb
input:
10 1000 12757899563936718782 4849101846511580591
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #200:
score: 4
Acceptable Answer
time: 0ms
memory: 4092kb
input:
10 1000 12042451762321061777 6545871721881053425
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #201:
score: 4
Acceptable Answer
time: 1ms
memory: 4128kb
input:
10 1000 7271935812956957572 10497459529945546802
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #202:
score: 4
Acceptable Answer
time: 1ms
memory: 4084kb
input:
10 1000 6341439274689803684 14246348077672882158
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #203:
score: 4
Acceptable Answer
time: 1ms
memory: 4080kb
input:
10 1000 3817682523043446725 5494962900415238875
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #204:
score: 4
Acceptable Answer
time: 1ms
memory: 4036kb
input:
10 1000 8416959987199109088 17055829519218252994
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #205:
score: 4
Acceptable Answer
time: 1ms
memory: 4040kb
input:
10 1000 1793119264835992157 1714507864697105513
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #206:
score: 4
Acceptable Answer
time: 1ms
memory: 4028kb
input:
10 1000 7724528875454987642 1763061129361823916
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #207:
score: 4
Acceptable Answer
time: 1ms
memory: 4136kb
input:
10 1000 11534422635927781263 4070139928445244316
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #208:
score: 4
Acceptable Answer
time: 1ms
memory: 4144kb
input:
10 1000 15372080430015808791 16089397545846471516
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #209:
score: 4
Acceptable Answer
time: 1ms
memory: 4060kb
input:
10 1000 6236739776451055601 16047865218788497420
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #210:
score: 4
Acceptable Answer
time: 1ms
memory: 4124kb
input:
10 1000 14252413239239367160 1213233746428807014
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #211:
score: 4
Acceptable Answer
time: 0ms
memory: 4124kb
input:
10 1000 18135377716189417455 5631819315037367158
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #212:
score: 4
Acceptable Answer
time: 1ms
memory: 4036kb
input:
10 1000 975559190469584474 827633655855054297
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #213:
score: 4
Acceptable Answer
time: 1ms
memory: 4132kb
input:
10 1000 1747065086398515576 5843112412157263265
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #214:
score: 4
Acceptable Answer
time: 1ms
memory: 4120kb
input:
10 1000 10928581559530131120 11165431097660462799
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #215:
score: 4
Acceptable Answer
time: 1ms
memory: 4120kb
input:
10 1000 5295255670083867030 1534392144514066093
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #216:
score: 4
Acceptable Answer
time: 0ms
memory: 4184kb
input:
10 1000 9073389650834195843 13245215630127115996
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Subtask #7:
score: 0
Wrong Answer
Test #217:
score: 4
Acceptable Answer
time: 8ms
memory: 15800kb
input:
500 1000 3911210051670624968 2787181900148297327
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #218:
score: 0
Wrong Answer
time: 10ms
memory: 15828kb
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: 20ms
memory: 27772kb
input:
1000 1000 2442055921391744378 15448328346037637846
output:
4123764187648
result:
points 0.0 Correct Answer. 0
Subtask #9:
score: 0
Wrong Answer
Test #289:
score: 4
Acceptable Answer
time: 74ms
memory: 40724kb
input:
1500 1500 8660688640427922501 1436138393991664715
output:
4123764187652
result:
points 0.40 Correct Answer. 4
Test #290:
score: 0
Wrong Answer
time: 78ms
memory: 40764kb
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: 155ms
memory: 53048kb
input:
2000 2000 6596342253746377097 6195418207254921855
output:
4123764187648
result:
points 0.0 Correct Answer. 0