QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#493372#9158. 分数leihonglongyin#0 77ms3692kbC++20260b2024-07-27 08:38:372024-07-27 08:38:37

Judging History

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

  • [2024-07-27 08:38:37]
  • 评测
  • 测评结果:0
  • 用时:77ms
  • 内存:3692kb
  • [2024-07-27 08:38:37]
  • 提交

answer

#include<bits/stdc++.h>
#define ll long long
using namespace std;int n,m;
ll sol(int x,int y){ll res=y/2;
	for(int i=2;i<=x;i+=2)res+=(y-1)/2/i;
	for(int i=5;i<=x;i+=4)res+=(y-2)/2/i;
	return res;
}
int main(){
	cin>>n>>m,cout<<(sol(n,m)+sol(m,n));
}

Details

Tip: Click on the bar to expand more detailed information

Pretests

Pretest #1:

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

input:

99 99

output:

320

result:

wrong answer 1st numbers differ - expected: '406', found: '320'

Pretest #2:

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

input:

98 97

output:

319

result:

wrong answer 1st numbers differ - expected: '405', found: '319'

Pretest #3:

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

input:

99 96

output:

311

result:

wrong answer 1st numbers differ - expected: '396', found: '311'

Pretest #4:

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

input:

995 977

output:

4916

result:

wrong answer 1st numbers differ - expected: '11153', found: '4916'

Pretest #5:

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

input:

991 990

output:

4936

result:

wrong answer 1st numbers differ - expected: '11220', found: '4936'

Pretest #6:

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

input:

976 968

output:

4832

result:

wrong answer 1st numbers differ - expected: '10900', found: '4832'

Pretest #7:

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

input:

7602 7864

output:

50502

result:

wrong answer 1st numbers differ - expected: '215706', found: '50502'

Pretest #8:

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

input:

7959 7735

output:

51330

result:

wrong answer 1st numbers differ - expected: '220256', found: '51330'

Pretest #9:

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

input:

7878 7863

output:

51494

result:

wrong answer 1st numbers differ - expected: '221162', found: '51494'

Pretest #10:

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

input:

7788 7658

output:

50429

result:

wrong answer 1st numbers differ - expected: '215323', found: '50429'

Pretest #11:

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

input:

95399 99767

output:

822777

result:

wrong answer 1st numbers differ - expected: '8285295', found: '822777'

Pretest #12:

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

input:

98051 99642

output:

834405

result:

wrong answer 1st numbers differ - expected: '8439713', found: '834405'

Pretest #13:

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

input:

95624 96007

output:

806581

result:

wrong answer 1st numbers differ - expected: '8068127', found: '806581'

Pretest #14:

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

input:

99208 98047

output:

832381

result:

wrong answer 1st numbers differ - expected: '8412610', found: '832381'

Pretest #15:

score: 0
Wrong Answer
time: 3ms
memory: 3628kb

input:

997417 967722

output:

9986742

result:

wrong answer 1st numbers differ - expected: '229917323', found: '9986742'

Pretest #16:

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

input:

987807 956529

output:

9873237

result:

wrong answer 1st numbers differ - expected: '226426912', found: '9873237'

Pretest #17:

score: 0
Wrong Answer
time: 3ms
memory: 3528kb

input:

971654 984345

output:

9936853

result:

wrong answer 1st numbers differ - expected: '228363805', found: '9936853'

Pretest #18:

score: 0
Wrong Answer
time: 17ms
memory: 3604kb

input:

7892259 7983727

output:

93118762

result:

wrong answer 1st numbers differ - expected: '4647501224', found: '93118762'

Pretest #19:

score: 0
Wrong Answer
time: 49ms
memory: 3492kb

input:

7937869 29796968

output:

230888575

result:

wrong answer 1st numbers differ - expected: '15197555613', found: '230888575'

Pretest #20:

score: 0
Wrong Answer
time: 77ms
memory: 3620kb

input:

29717543 29510173

output:

376634975

result:

wrong answer 1st numbers differ - expected: '30904211576', found: '376634975'


Final Tests

Test #1:

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

input:

96 98

output:

311

result:

wrong answer 1st numbers differ - expected: '396', found: '311'

Test #2:

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

input:

100 99

output:

322

result:

wrong answer 1st numbers differ - expected: '408', found: '322'

Test #3:

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

input:

99 99

output:

320

result:

wrong answer 1st numbers differ - expected: '406', found: '320'

Test #4:

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

input:

963 951

output:

4743

result:

wrong answer 1st numbers differ - expected: '10634', found: '4743'

Test #5:

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

input:

958 974

output:

4796

result:

wrong answer 1st numbers differ - expected: '10795', found: '4796'

Test #6:

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

input:

966 990

output:

4869

result:

wrong answer 1st numbers differ - expected: '11003', found: '4869'

Test #7:

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

input:

7958 7947

output:

52105

result:

wrong answer 1st numbers differ - expected: '224482', found: '52105'

Test #8:

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

input:

7623 7730

output:

50095

result:

wrong answer 1st numbers differ - expected: '213444', found: '50095'

Test #9:

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

input:

7845 7783

output:

51091

result:

wrong answer 1st numbers differ - expected: '218916', found: '51091'

Test #10:

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

input:

7881 7773

output:

51173

result:

wrong answer 1st numbers differ - expected: '219451', found: '51173'

Test #11:

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

input:

99414 98698

output:

836311

result:

wrong answer 1st numbers differ - expected: '8465217', found: '836311'

Test #12:

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

input:

98249 96148

output:

819252

result:

wrong answer 1st numbers differ - expected: '8237486', found: '819252'

Test #13:

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

input:

99003 96832

output:

825884

result:

wrong answer 1st numbers differ - expected: '8324931', found: '825884'

Test #14:

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

input:

98266 96030

output:

818780

result:

wrong answer 1st numbers differ - expected: '8231065', found: '818780'

Test #15:

score: 0
Wrong Answer
time: 3ms
memory: 3608kb

input:

968207 958885

output:

9779167

result:

wrong answer 1st numbers differ - expected: '223522215', found: '9779167'

Test #16:

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

input:

959846 998397

output:

9949093

result:

wrong answer 1st numbers differ - expected: '228770873', found: '9949093'

Test #17:

score: 0
Wrong Answer
time: 3ms
memory: 3684kb

input:

965821 972280

output:

9839156

result:

wrong answer 1st numbers differ - expected: '225359210', found: '9839156'

Test #18:

score: 0
Wrong Answer
time: 17ms
memory: 3616kb

input:

7855098 7962479

output:

92754262

result:

wrong answer 1st numbers differ - expected: '4622947400', found: '92754262'

Test #19:

score: 0
Wrong Answer
time: 49ms
memory: 3660kb

input:

7841076 29648718

output:

229269443

result:

wrong answer 1st numbers differ - expected: '15040798710', found: '229269443'

Test #20:

score: 0
Wrong Answer
time: 76ms
memory: 3664kb

input:

29365129 29012208

output:

370910766

result:

wrong answer 1st numbers differ - expected: '30267839959', found: '370910766'